Skip to content

Commit

Permalink
Fix a typo (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaCodeZero authored Jul 17, 2024
1 parent f272843 commit 9a20860
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/04_traits/09_from.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ let title = String::from("A title");

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

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

0 comments on commit 9a20860

Please sign in to comment.