diff options
| author | liv <mokou@fastmail.com> | 2023-03-10 18:03:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-10 18:03:06 +0100 |
| commit | 9c515c78633b5f9a8356aa0a4dc0711e2335f713 (patch) | |
| tree | 65ecd16cb1a869d60a4bb24c4f23b9b77d1fe0b4 | |
| parent | 7f1754ecc5690f31db4aff38eef2bf30e2aec525 (diff) | |
| parent | ec86b60e704520289acac180cc55058431ca2bdb (diff) | |
Merge pull request #1415 from Nagidal/improve-hint-strings2
improve hint for strings2, #1407
| -rw-r--r-- | info.toml | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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" |
