From 37489a67e597d6b5f85ce407f8075ee7ae7f3fec Mon Sep 17 00:00:00 2001 From: Ron Dahlgren Date: Tue, 11 Jun 2013 16:34:03 -0700 Subject: [PATCH] Iterator documentation fixes Fixes two typos and one incorrect description. --- src/libstd/iterator.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libstd/iterator.rs b/src/libstd/iterator.rs index 8803844fdd0..0c3249b812d 100644 --- a/src/libstd/iterator.rs +++ b/src/libstd/iterator.rs @@ -38,7 +38,7 @@ pub trait Iterator { /// /// In the future these will be default methods instead of a utility trait. pub trait IteratorUtil { - /// Chan this iterator with another, returning a new iterator which will + /// Chain this iterator with another, returning a new iterator which will /// finish iterating over the current iterator, and then it will iterate /// over the other specified iterator. /// @@ -108,7 +108,7 @@ pub trait IteratorUtil { /// ~~~ fn filter<'r>(self, predicate: &'r fn(&A) -> bool) -> FilterIterator<'r, A, Self>; - /// Creates an iterator which both filters and maps elements at the same + /// Creates an iterator which both filters and maps elements. /// If the specified function returns None, the element is skipped. /// Otherwise the option is unwrapped and the new value is yielded. /// @@ -141,7 +141,7 @@ pub trait IteratorUtil { fn enumerate(self) -> EnumerateIterator; /// Creates an iterator which invokes the predicate on elements until it - /// returns true. Once the predicate returns true, all further elements are + /// returns false. Once the predicate returns false, all further elements are /// yielded. /// /// # Example