Skip to content

Commit ec86b60

Browse files
author
Sven Siegmund
committed
improve hint for strings2, #1407
1 parent 7f1754e commit ec86b60

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

info.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,9 @@ mode = "compile"
439439
hint = """
440440
Yes, it would be really easy to fix this by just changing the value bound to `word` to be a
441441
string slice instead of a `String`, wouldn't it?? There is a way to add one character to line
442-
9, though, that will coerce the `String` into a string slice."""
442+
9, though, that will coerce the `String` into a string slice.
443+
444+
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"""
443445

444446
[[exercises]]
445447
name = "strings3"

0 commit comments

Comments
 (0)