diff --git a/src/doc/unstable-book/src/conservative-impl-trait.md b/src/doc/unstable-book/src/conservative-impl-trait.md index 62a7f8c16a0..0be6a321103 100644 --- a/src/doc/unstable-book/src/conservative-impl-trait.md +++ b/src/doc/unstable-book/src/conservative-impl-trait.md @@ -33,9 +33,9 @@ fn main() { In today's Rust, you can write function signatures like: ````rust,ignore -fn consume_iter_static>(iter: I) { } +fn consume_iter_static>(iter: I) { } -fn consume_iter_dynamic(iter: Box>) { } +fn consume_iter_dynamic(iter: Box>) { } ```` In both cases, the function does not depend on the exact type of the argument. @@ -50,13 +50,13 @@ The type held is "abstract", and is assumed only to satisfy a trait bound. On the other hand, while you can write: ````rust,ignore -fn produce_iter_dynamic() -> Box> { } +fn produce_iter_dynamic() -> Box> { } ```` ...but you _cannot_ write something like: ````rust,ignore -fn produce_iter_static() -> Iterator { } +fn produce_iter_static() -> Iterator { } ```` That is, in today's Rust, abstract return types can only be written using trait