Skip to content

Commit

Permalink
Update generic-traits.md (google#2142)
Browse files Browse the repository at this point in the history
Fix a typo.
  • Loading branch information
GeorgNeis authored Jun 13, 2024
1 parent d2f8fc4 commit 1723bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generics/generic-traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1723bae

Please sign in to comment.