feat(traits): add hint comments

This commit is contained in:
mokou
2022-07-14 18:14:41 +02:00
parent 5979d408a9
commit 98b8d3f17d
3 changed files with 4 additions and 1 deletions

View File

@@ -698,7 +698,8 @@ path = "exercises/traits/traits2.rs"
mode = "test"
hint = """
Notice how the trait takes ownership of 'self',and returns `Self'.
Try mutating the incoming string vector.
Try mutating the incoming string vector. Have a look at the tests to see
what the result should look like!
Vectors provide suitable methods for adding an element at the end. See
the documentation at: https://doc.rust-lang.org/std/vec/struct.Vec.html"""