about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-10-28 14:36:54 +0000
committerbors <bors@rust-lang.org>2014-10-28 14:36:54 +0000
commitd1bfd6515c3793b7fc70a21d014ce691ac616992 (patch)
treec69f42b79a7d8b3730f9268f9c0a9bcd553211c9
parent58dc0a05abb98ae2db65ca20e70f3bab51f8bf92 (diff)
parentb4697f061232954608857af6a0deda14ac1b500e (diff)
downloadrust-d1bfd6515c3793b7fc70a21d014ce691ac616992.tar.gz
rust-d1bfd6515c3793b7fc70a21d014ce691ac616992.zip
auto merge of #18273 : gamazeps/rust/issue18218, r=steveklabnik
Closes #18218
-rw-r--r--src/doc/guide.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/doc/guide.md b/src/doc/guide.md
index 842157bb519..4d77605dccd 100644
--- a/src/doc/guide.md
+++ b/src/doc/guide.md
@@ -4545,9 +4545,10 @@ range(1i, 100i).map(|x| println!("{}", x));
 If you are trying to execute a closure on an iterator for its side effects,
 just use `for` instead.
 
-There are tons of interesting iterator adapters. `take(n)` will get the
-first `n` items out of an iterator, and return them as a list. Let's
-try it out with our infinite iterator from before, `count()`:
+There are tons of interesting iterator adapters. `take(n)` will return an
+iterator over the next `n` elements of the original iterator, note that this
+has no side effect on the original iterator. Let's try it out with our infinite
+iterator from before, `count()`:
 
 ```{rust}
 for i in std::iter::count(1i, 5i).take(5) {