Fix the typo in The Rust Programming Language book, 5.18. Strings
This commit is contained in:
parent
d7185dcff1
commit
c5c508621d
@ -123,7 +123,7 @@ let world = "world!".to_string();
|
||||
let hello_world = hello + &world;
|
||||
```
|
||||
|
||||
This is because `&String` can automatically coerece to a `&str`. This is a
|
||||
This is because `&String` can automatically coerce to a `&str`. This is a
|
||||
feature called ‘[`Deref` coercions][dc]’.
|
||||
|
||||
[dc]: deref-coercions.html
|
||||
|
Loading…
Reference in New Issue
Block a user