about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-06-12 12:13:53 -0700
committerbors <bors@rust-lang.org>2013-06-12 12:13:53 -0700
commit78cddc83a44f04c7252435c9d6fff01b43cb44b3 (patch)
tree8d43497e3936161fb1358626c340b1834db3a64e /src/libstd
parent135ba946a233c1d32b98943180d3eaacc9ff26f2 (diff)
parent37489a67e597d6b5f85ce407f8075ee7ae7f3fec (diff)
downloadrust-78cddc83a44f04c7252435c9d6fff01b43cb44b3.tar.gz
rust-78cddc83a44f04c7252435c9d6fff01b43cb44b3.zip
auto merge of #7073 : influenza/rust/iterator-doc-fixes, r=catamorphism
This commit fixes two typos and an incorrect description.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/iterator.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/iterator.rs b/src/libstd/iterator.rs
index bed74eba604..eedabadf74c 100644
--- a/src/libstd/iterator.rs
+++ b/src/libstd/iterator.rs
@@ -38,7 +38,7 @@ pub trait Iterator<A> {
 ///
 /// In the future these will be default methods instead of a utility trait.
 pub trait IteratorUtil<A> {
-    /// 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<A> {
     /// ~~~
     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<A> {
     fn enumerate(self) -> EnumerateIterator<A, Self>;
 
     /// 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