rustlings icon indicating copy to clipboard operation
rustlings copied to clipboard

Change hints of exercises traits4 and traits5 for a better learning experience

Open jkauerl opened this issue 1 year ago • 0 comments

This pull request consist of one commit which changes the format of the hints in the exercises 4 and 5 of traits.

In short, it changes the "<" to "[" like this:

hint = """
"Instead of using concrete types as parameters you can use traits. Try replacing 
the '??' with 'impl [what goes here?]

See the documentation at: https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters
"""

The reasoning for changing "<" is that right before you learn about using generics. So one could think that the solution to the exercises is by using generics.

jkauerl avatar May 25 '24 19:05 jkauerl