about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-06-13 18:03:55 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-06-13 18:03:55 +0530
commit15aa3bbccc6777317d0bcc6fb04350171f3b61a3 (patch)
treefed2b63a1713f8e1b27d0fa1bd25405139867d14
parenta9f1e29c4ef68d09f3a926462e4be946d0749042 (diff)
parent45000197831c34a317de5c0f6fd81ebb9354fb65 (diff)
downloadrust-15aa3bbccc6777317d0bcc6fb04350171f3b61a3.tar.gz
rust-15aa3bbccc6777317d0bcc6fb04350171f3b61a3.zip
Rollup merge of #26255 - steveklabnik:gh25499, r=alexcrichton
Fixes #25499
-rw-r--r--src/doc/trpl/iterators.md11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/doc/trpl/iterators.md b/src/doc/trpl/iterators.md
index 249c1cc7e34..1c574f02091 100644
--- a/src/doc/trpl/iterators.md
+++ b/src/doc/trpl/iterators.md
@@ -285,8 +285,7 @@ has no side effect on the original iterator. Let's try it out with our infinite
 iterator from before:
 
 ```rust
-# #![feature(step_by)]
-for i in (1..).step_by(5).take(5) {
+for i in (1..).take(5) {
     println!("{}", i);
 }
 ```
@@ -295,10 +294,10 @@ This will print
 
 ```text
 1
-6
-11
-16
-21
+2
+3
+4
+5
 ```
 
 `filter()` is an adapter that takes a closure as an argument. This closure