From: Zhang Zihao <296311907@qq.com> Date: Wed, 17 Jul 2024 06:08:22 +0000 (+0800) Subject: Fix a typo (#116) X-Git-Url: http://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=9a2086081c2c6760c8c6557f293f025182c8dcac;p=rust_exercises.git Fix a typo (#116) --- diff --git a/book/src/04_traits/09_from.md b/book/src/04_traits/09_from.md index 2d5dd67..3006dba 100644 --- a/book/src/04_traits/09_from.md +++ b/book/src/04_traits/09_from.md @@ -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 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**: