We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7865ba commit f324ae2Copy full SHA for f324ae2
book/src/04_traits/07_deref.md
@@ -33,7 +33,7 @@ Let's review the facts:
33
- `&self.title` is, therefore, a `&String`
34
- The output of the (modified) `title` method is `&str`
35
36
-You would expect a compiler error, wouldn't you? `Expected &String, found &str` or something similar.
+You would expect a compiler error, wouldn't you? `Expected &str, found &String` or something similar.
37
Instead, it just works. **Why**?
38
39
## `Deref` to the rescue
0 commit comments