From b2cb2cbf31dee4071803560158805acf0644ebcf Mon Sep 17 00:00:00 2001 From: davhojt Date: Tue, 24 May 2022 17:43:43 +0300 Subject: [PATCH] docs(string_permutation): correct grammar --- subjects/string_permutation/README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/subjects/string_permutation/README.md b/subjects/string_permutation/README.md index 6e60b0b9..4875daa8 100644 --- a/subjects/string_permutation/README.md +++ b/subjects/string_permutation/README.md @@ -2,14 +2,9 @@ ### Instructions -Define the **function** `is_permutation` that returns true if: +Define the **function** `is_permutation`, that returns `true` if the string `s1` is a permutation of `s2`. -- the string `s1` is a permutation of `s2`, otherwise it returns false. -- `s1` is a permutation of `s2` if all the elements in `s1` appear the same number of times in `s2` and all the characters in `s1` appear in `s2` even if they are in different order. - -### Notions - -- [hash maps](https://doc.rust-lang.org/book/ch08-03-hash-maps.html) +`s1` is a permutation of `s2` if all the elements in `s1` appear the same number of times in `s2`, and all the characters in `s1` appear in `s2` even if they are in different order. ### Expected Function @@ -44,3 +39,7 @@ $ cargo run Is `thought` a permutation of `thougth`? = true $ ``` + +### Notions + +- [hash maps](https://doc.rust-lang.org/book/ch08-03-hash-maps.html)