summaryrefslogtreecommitdiffstats
path: root/src/doc/rust-by-example/src/generics/bounds.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/rust-by-example/src/generics/bounds.md')
-rw-r--r--src/doc/rust-by-example/src/generics/bounds.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rust-by-example/src/generics/bounds.md b/src/doc/rust-by-example/src/generics/bounds.md
index 5d7e849a8..86e54e670 100644
--- a/src/doc/rust-by-example/src/generics/bounds.md
+++ b/src/doc/rust-by-example/src/generics/bounds.md
@@ -58,10 +58,10 @@ fn main() {
let _triangle = Triangle { length: 3.0, height: 4.0 };
print_debug(&rectangle);
- println!("Area: {}", rectangle.area());
+ println!("Area: {}", area(&rectangle));
//print_debug(&_triangle);
- //println!("Area: {}", _triangle.area());
+ //println!("Area: {}", area(&_triangle));
// ^ TODO: Try uncommenting these.
// | Error: Does not implement either `Debug` or `HasArea`.
}