booK: Float no longer exists

This commit is contained in:
Tshepang Lekhonkhobe 2015-06-01 23:07:42 +02:00
parent dc99fdbd66
commit 09c6203ad6

View File

@ -215,7 +215,7 @@ it wont affect you, unless you `use` that trait.
Theres one more restriction on implementing traits: either the trait, or the
type youre 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