mirror of
https://github.com/notohh/rustlings.git
synced 2024-12-23 11:48:09 -05:00
chore: remove line reference from strings2 hint
This commit is contained in:
parent
b99c7b8c37
commit
0ab781c7a7
1 changed files with 2 additions and 2 deletions
|
@ -438,8 +438,8 @@ path = "exercises/strings/strings2.rs"
|
|||
mode = "compile"
|
||||
hint = """
|
||||
Yes, it would be really easy to fix this by just changing the value bound to `word` to be a
|
||||
string slice instead of a `String`, wouldn't it?? There is a way to add one character to line
|
||||
12, though, that will coerce the `String` into a string slice.
|
||||
string slice instead of a `String`, wouldn't it?? There is a way to add one character to the
|
||||
if statement, though, that will coerce the `String` into a string slice.
|
||||
|
||||
Side note: If you're interested in learning about how this kind of reference conversion works, you can jump ahead in the book and read this part in the smart pointers chapter: https://doc.rust-lang.org/stable/book/ch15-02-deref.html#implicit-deref-coercions-with-functions-and-methods"""
|
||||
|
||||
|
|
Loading…
Reference in a new issue