|
|
@ -698,7 +698,8 @@ path = "exercises/traits/traits2.rs"
|
|
|
|
mode = "test"
|
|
|
|
mode = "test"
|
|
|
|
hint = """
|
|
|
|
hint = """
|
|
|
|
Notice how the trait takes ownership of 'self',and returns `Self'.
|
|
|
|
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
|
|
|
|
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"""
|
|
|
|
the documentation at: https://doc.rust-lang.org/std/vec/struct.Vec.html"""
|
|
|
|