book: update error message
This commit is contained in:
parent
37dd7a2494
commit
dc99fdbd66
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue