From 775fbff97b61353d8741bc0b4e7eeccedb45b4bc Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Sat, 12 Nov 2016 13:20:45 -0500 Subject: [PATCH] Fix the tests; clarify that this is just a fn signature --- src/ch10-02-traits.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ch10-02-traits.md b/src/ch10-02-traits.md index 7ed60b67b..f7dc3869e 100644 --- a/src/ch10-02-traits.md +++ b/src/ch10-02-traits.md @@ -267,10 +267,10 @@ fn show_anything(value: T) where T: Display { Instead of `T: Display` going inside the angle brackets, they go after the `where` keyword at the end of the function signature. This can make complex signatures easier to read. The `where` clause and its parts can also go on new -lines. Here's a function that takes a lot of generic type parameters that each -have multiple trait bounds: +lines. Here's the signature of a function that takes three generic type +parameters that each have multiple trait bounds: -```rust +```rust,ignore fn some_function(t: T, u: U, v: V) where T: Display + Clone, U: Printable + Debug,