diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-06-13 18:03:55 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-06-13 18:03:55 +0530 |
| commit | 15aa3bbccc6777317d0bcc6fb04350171f3b61a3 (patch) | |
| tree | fed2b63a1713f8e1b27d0fa1bd25405139867d14 | |
| parent | a9f1e29c4ef68d09f3a926462e4be946d0749042 (diff) | |
| parent | 45000197831c34a317de5c0f6fd81ebb9354fb65 (diff) | |
| download | rust-15aa3bbccc6777317d0bcc6fb04350171f3b61a3.tar.gz rust-15aa3bbccc6777317d0bcc6fb04350171f3b61a3.zip | |
Rollup merge of #26255 - steveklabnik:gh25499, r=alexcrichton
Fixes #25499
| -rw-r--r-- | src/doc/trpl/iterators.md | 11 |
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 |
