about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrik Sverdrup <bluss@users.noreply.github.com>2016-11-23 11:33:08 +0100
committerUlrik Sverdrup <bluss@users.noreply.github.com>2016-11-23 11:39:53 +0100
commit1c6048d0f4b4ad49f608f3ecba7183201d4c0eda (patch)
tree0055ad774ba324db2810e23cf08bf95426414f62
parentb1da18fe9be180ecfcfb1691c4eb669c496996f5 (diff)
downloadrust-1c6048d0f4b4ad49f608f3ecba7183201d4c0eda.tar.gz
rust-1c6048d0f4b4ad49f608f3ecba7183201d4c0eda.zip
core: Iterator docs, collect is not an adaptor
-rw-r--r--src/libcore/iter/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/iter/mod.rs b/src/libcore/iter/mod.rs
index cd2e0cb11d3..4b93bb73139 100644
--- a/src/libcore/iter/mod.rs
+++ b/src/libcore/iter/mod.rs
@@ -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
 //!
@@ -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
 //!