Skip to content

Commit f324ae2

Browse files
make the possible error message more similar to the compiler error message
1 parent a7865ba commit f324ae2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/src/04_traits/07_deref.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Let's review the facts:
3333
- `&self.title` is, therefore, a `&String`
3434
- The output of the (modified) `title` method is `&str`
3535

36-
You would expect a compiler error, wouldn't you? `Expected &String, found &str` or something similar.
36+
You would expect a compiler error, wouldn't you? `Expected &str, found &String` or something similar.
3737
Instead, it just works. **Why**?
3838

3939
## `Deref` to the rescue

0 commit comments

Comments
 (0)