mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-26 07:20:30 +00:00
Merge pull request #1978 from jkauerl/main
Change hints of exercises traits4 and traits5 for a better learning experience
This commit is contained in:
commit
d140d49b61
1 changed files with 2 additions and 2 deletions
|
@ -816,7 +816,7 @@ path = "exercises/15_traits/traits4.rs"
|
|||
mode = "test"
|
||||
hint = """
|
||||
Instead of using concrete types as parameters you can use traits. Try replacing
|
||||
the '??' with 'impl <what goes here?>'
|
||||
the '??' with 'impl [what goes here?]'
|
||||
|
||||
See the documentation at: https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters
|
||||
"""
|
||||
|
@ -827,7 +827,7 @@ path = "exercises/15_traits/traits5.rs"
|
|||
mode = "compile"
|
||||
hint = """
|
||||
To ensure a parameter implements multiple traits use the '+ syntax'. Try
|
||||
replacing the '??' with 'impl <> + <>'.
|
||||
replacing the '??' with 'impl [what goes here?] + [what goes here?]'.
|
||||
|
||||
See the documentation at: https://doc.rust-lang.org/book/ch10-02-traits.html#specifying-multiple-trait-bounds-with-the--syntax
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue