diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-06-12 15:00:15 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-06-12 15:00:21 -0400 |
| commit | 45000197831c34a317de5c0f6fd81ebb9354fb65 (patch) | |
| tree | b4e42447c286a66b7151fa33902f38e5b6050978 | |
| parent | a2f2a647633505fa83bcd9644d296ad529ebac41 (diff) | |
| download | rust-45000197831c34a317de5c0f6fd81ebb9354fb65.tar.gz rust-45000197831c34a317de5c0f6fd81ebb9354fb65.zip | |
Remove unstable feature from TRPL: iterators
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 |
