book: update error message
This commit is contained in:
parent
37dd7a2494
commit
dc99fdbd66
@ -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 can’t be sure that it implements the `area`
|
||||
|
Loading…
x
Reference in New Issue
Block a user