summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliv <mokou@fastmail.com>2023-03-10 18:03:06 +0100
committerGitHub <noreply@github.com>2023-03-10 18:03:06 +0100
commit9c515c78633b5f9a8356aa0a4dc0711e2335f713 (patch)
tree65ecd16cb1a869d60a4bb24c4f23b9b77d1fe0b4
parent7f1754ecc5690f31db4aff38eef2bf30e2aec525 (diff)
parentec86b60e704520289acac180cc55058431ca2bdb (diff)
Merge pull request #1415 from Nagidal/improve-hint-strings2
improve hint for strings2, #1407
-rw-r--r--info.toml4
1 files changed, 3 insertions, 1 deletions
diff --git a/info.toml b/info.toml
index 2f42403..731db50 100644
--- a/info.toml
+++ b/info.toml
@@ -439,7 +439,9 @@ 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
-9, though, that will coerce the `String` into a string slice."""
+9, 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"""
[[exercises]]
name = "strings3"