Fix a typo (#116)
Some checks failed
CI / build (push) Has been cancelled
CI / formatter (push) Has been cancelled

This commit is contained in:
Zhang Zihao 2024-07-17 14:08:22 +08:00 committed by GitHub
parent f272843c61
commit 9a2086081c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -108,7 +108,7 @@ let title = String::from("A title");
We've been primarily using `.into()`, though.\ 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) 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**.\ `From` and `Into` are **dual traits**.\
In particular, `Into` is implemented for any type that implements `From` using a **blanket implementation**: In particular, `Into` is implemented for any type that implements `From` using a **blanket implementation**: