From 1723baee47f6dbce7a12ee699ccce8b1c4b83b0e Mon Sep 17 00:00:00 2001 From: GeorgNeis Date: Fri, 14 Jun 2024 01:18:45 +0900 Subject: [PATCH] Update generic-traits.md (#2142) Fix a typo. --- src/generics/generic-traits.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generics/generic-traits.md b/src/generics/generic-traits.md index 01b5d370..7df8af41 100644 --- a/src/generics/generic-traits.md +++ b/src/generics/generic-traits.md @@ -37,7 +37,7 @@ fn main() { is simple. - Implementations of the trait do not need to cover all possible type - parameters. Here, `Foo::From("hello")` would not compile because there is no + parameters. Here, `Foo::from("hello")` would not compile because there is no `From<&str>` implementation for `Foo`. - Generic traits take types as "input", while associated types are a kind of