Skip to content

Commit 09c6203

Browse files
committed
booK: Float no longer exists
1 parent dc99fdb commit 09c6203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/trpl/traits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ it won’t affect you, unless you `use` that trait.
215215
There’s one more restriction on implementing traits: either the trait, or the
216216
type you’re writing the `impl` for, must be defined by you. So, we could
217217
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
218+
if we tried to implement `ToString`, a trait provided by Rust, for `i32`, we could
219219
not, because neither the trait nor the type are in our code.
220220

221221
One last thing about traits: generic functions with a trait bound use

0 commit comments

Comments
 (0)