From 09c6203ad6508dcf3374cddfc2778b861cd9a6be Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Mon, 1 Jun 2015 23:07:42 +0200 Subject: [PATCH] booK: Float no longer exists --- src/doc/trpl/traits.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/trpl/traits.md b/src/doc/trpl/traits.md index d3f50884a16d..162a2db1ec75 100644 --- a/src/doc/trpl/traits.md +++ b/src/doc/trpl/traits.md @@ -215,7 +215,7 @@ it won’t affect you, unless you `use` that trait. There’s one more restriction on implementing traits: either the trait, or the type you’re writing the `impl` for, must be defined by you. So, we could implement the `HasArea` type for `i32`, because `HasArea` is in our code. But -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 not, because neither the trait nor the type are in our code. One last thing about traits: generic functions with a trait bound use