docs(reverse_string): correct grammar

This commit is contained in:
davhojt 2022-05-19 11:05:19 +03:00 committed by Dav Hojt
parent 906fb14799
commit fe2f708d89
1 changed files with 8 additions and 9 deletions

View File

@ -2,16 +2,8 @@
### Instructions
Write a **function** `rev_str` that takes a `&str` as a parameter, and returns a `String` with its letters reversed.
Create a **function** named `rev_str` that takes a `&str` as a parameter, and returns a `String` with its letters reversed.
### Notions
- [Strings](https://doc.rust-lang.org/rust-by-example/std/str.html)
- [Primitive Type str](https://doc.rust-lang.org/std/primitive.str.html)
- [Primtive Type char](https://doc.rust-lang.org/std/primitive.char.html)
- [Module std::string](https://doc.rust-lang.org/std/string/index.html)
### Expected Functions
```rust
pub fn rev_str(input: &str) -> String {
@ -45,3 +37,10 @@ uoY era dlo woH
augá elpmaxe na si siht :xe
$
```
### Notions
- [Strings](https://doc.rust-lang.org/rust-by-example/std/str.html)
- [Primitive Type str](https://doc.rust-lang.org/std/primitive.str.html)
- [Primtive Type char](https://doc.rust-lang.org/std/primitive.char.html)
- [Module std::string](https://doc.rust-lang.org/std/string/index.html)