Fix a typo (#116)

This commit is contained in:
Zhang Zihao authored and GitHub committed 2024-07-17 08:08:22 +02:00
1 parent f272843c61
commit 9a2086081c
1 file changed
+1 -1
+1 -1
View File
@@ -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**: