Skip to content

Commit dc99fdb

Browse files
committed
book: update error message
1 parent 37dd7a2 commit dc99fdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/trpl/traits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ fn print_area<T>(shape: T) {
5656
Rust complains:
5757

5858
```text
59-
error: type `T` does not implement any method in scope named `area`
59+
error: no method named `area` found for type `T` in the current scope
6060
```
6161

6262
Because `T` can be any type, we can’t be sure that it implements the `area`

0 commit comments

Comments
 (0)