Skip to content

Commit

Permalink
core: Iterator docs, collect is not an adaptor
Browse files Browse the repository at this point in the history
  • Loading branch information
bluss committed Nov 23, 2016
1 parent b1da18f commit 1c6048d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libcore/iter/mod.rs
Expand Up @@ -225,12 +225,12 @@
//! often called 'iterator adapters', as they're a form of the 'adapter
//! pattern'.
//!
//! Common iterator adapters include [`map()`], [`take()`], and [`collect()`].
//! Common iterator adapters include [`map()`], [`take()`], and [`filter()`].
//! For more, see their documentation.
//!
//! [`map()`]: trait.Iterator.html#method.map
//! [`take()`]: trait.Iterator.html#method.take
//! [`collect()`]: trait.Iterator.html#method.collect
//! [`filter()`]: trait.Iterator.html#method.filter
//!
//! # Laziness
//!
Expand Down Expand Up @@ -268,7 +268,7 @@
//! [`map()`]: trait.Iterator.html#method.map
//!
//! The two most common ways to evaluate an iterator are to use a `for` loop
//! like this, or using the [`collect()`] adapter to produce a new collection.
//! like this, or using the [`collect()`] method to produce a new collection.
//!
//! [`collect()`]: trait.Iterator.html#method.collect
//!
Expand Down

0 comments on commit 1c6048d

Please sign in to comment.