From 9a2086081c2c6760c8c6557f293f025182c8dcac Mon Sep 17 00:00:00 2001 From: Zhang Zihao <296311907@qq.com> Date: Wed, 17 Jul 2024 14:08:22 +0800 Subject: [PATCH] Fix a typo (#116) --- book/src/04_traits/09_from.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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**: -- 2.45.2