We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc99fdb commit 09c6203Copy full SHA for 09c6203
src/doc/trpl/traits.md
@@ -215,7 +215,7 @@ it won’t affect you, unless you `use` that trait.
215
There’s one more restriction on implementing traits: either the trait, or the
216
type you’re writing the `impl` for, must be defined by you. So, we could
217
implement the `HasArea` type for `i32`, because `HasArea` is in our code. But
218
-if we tried to implement `Float`, a trait provided by Rust, for `i32`, we could
+if we tried to implement `ToString`, a trait provided by Rust, for `i32`, we could
219
not, because neither the trait nor the type are in our code.
220
221
One last thing about traits: generic functions with a trait bound use
0 commit comments