Skip to content

Commit bac485b

Browse files
Fix a typo (mainmatter#116)
1 parent 3f6cabe commit bac485b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/src/04_traits/09_from.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ let title = String::from("A title");
108108

109109
We've been primarily using `.into()`, though.\
110110
If you check out the [implementors of `Into`](https://doc.rust-lang.org/std/convert/trait.Into.html#implementors)
111-
you won't find `Into<&str> for String`. What's going on?
111+
you won't find `Into<String> for &str`. What's going on?
112112

113113
`From` and `Into` are **dual traits**.\
114114
In particular, `Into` is implemented for any type that implements `From` using a **blanket implementation**:

0 commit comments

Comments
 (0)