From 43b98809e9162f6f47da9c0cfa57b0b7231aa063 Mon Sep 17 00:00:00 2001 From: davhojt Date: Mon, 30 May 2022 17:32:55 +0300 Subject: [PATCH] docs(rgb_match) correct grammar --- subjects/rgb_match/README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/subjects/rgb_match/README.md b/subjects/rgb_match/README.md index c188e678..7fba9637 100644 --- a/subjects/rgb_match/README.md +++ b/subjects/rgb_match/README.md @@ -2,12 +2,7 @@ ### Instructions -Implement the struct `Color` with the function `swap`. -This function must allow you to swap the values of the struct. - -### Notions - -- [patterns](https://doc.rust-lang.org/book/ch18-00-patterns.html) +Implement the struct `Color` with the associated function `swap`. This function returns a `Color` with the matching values swapped. ### Expected functions @@ -81,3 +76,7 @@ Color { r: 255, g: 30, b: 10, a: 200 } $ ``` + +### Notions + +- [patterns](https://doc.rust-lang.org/book/ch18-00-patterns.html)