]> git.lizzy.rs Git - rust.git/commitdiff
core: Iterator docs, collect is not an adaptor
authorUlrik Sverdrup <bluss@users.noreply.github.com>
Wed, 23 Nov 2016 10:33:08 +0000 (11:33 +0100)
committerUlrik Sverdrup <bluss@users.noreply.github.com>
Wed, 23 Nov 2016 10:39:53 +0000 (11:39 +0100)
src/libcore/iter/mod.rs

index cd2e0cb11d35e0a2c3362cd217337648b94f6175..4b93bb73139a5daa8fd8c1f75639693d353a8ede 100644 (file)
 //! 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
 //!
 //! [`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
 //!