From dc99fdbd664a936d5f31783774a1362491b31e14 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Mon, 1 Jun 2015 23:06:51 +0200 Subject: [PATCH] book: update error message --- src/doc/trpl/traits.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/trpl/traits.md b/src/doc/trpl/traits.md index ae42b3af656..d3f50884a16 100644 --- a/src/doc/trpl/traits.md +++ b/src/doc/trpl/traits.md @@ -56,7 +56,7 @@ fn print_area(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`