book: update error message

This commit is contained in:
Tshepang Lekhonkhobe 2015-06-01 23:06:51 +02:00
parent 37dd7a2494
commit dc99fdbd66

View File

@ -56,7 +56,7 @@ fn print_area<T>(shape: T) {
Rust complains:
```text
error: type `T` does not implement any method in scope named `area`
error: no method named `area` found for type `T` in the current scope
```
Because `T` can be any type, we cant be sure that it implements the `area`