Skip to content

Commit 78cddc8

Browse files
committed
auto merge of #7073 : influenza/rust/iterator-doc-fixes, r=catamorphism
This commit fixes two typos and an incorrect description.
2 parents 135ba94 + 37489a6 commit 78cddc8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstd/iterator.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub trait Iterator<A> {
3838
///
3939
/// In the future these will be default methods instead of a utility trait.
4040
pub trait IteratorUtil<A> {
41-
/// Chan this iterator with another, returning a new iterator which will
41+
/// Chain this iterator with another, returning a new iterator which will
4242
/// finish iterating over the current iterator, and then it will iterate
4343
/// over the other specified iterator.
4444
///
@@ -108,7 +108,7 @@ pub trait IteratorUtil<A> {
108108
/// ~~~
109109
fn filter<'r>(self, predicate: &'r fn(&A) -> bool) -> FilterIterator<'r, A, Self>;
110110

111-
/// Creates an iterator which both filters and maps elements at the same
111+
/// Creates an iterator which both filters and maps elements.
112112
/// If the specified function returns None, the element is skipped.
113113
/// Otherwise the option is unwrapped and the new value is yielded.
114114
///
@@ -141,7 +141,7 @@ pub trait IteratorUtil<A> {
141141
fn enumerate(self) -> EnumerateIterator<A, Self>;
142142

143143
/// Creates an iterator which invokes the predicate on elements until it
144-
/// returns true. Once the predicate returns true, all further elements are
144+
/// returns false. Once the predicate returns false, all further elements are
145145
/// yielded.
146146
///
147147
/// # Example

0 commit comments

Comments
 (0)