1
Fork 0

Rollup merge of #26255 - steveklabnik:gh25499, r=alexcrichton

Fixes #25499
This commit is contained in:
Manish Goregaokar 2015-06-13 18:03:55 +05:30
commit 15aa3bbccc

View file

@ -285,8 +285,7 @@ has no side effect on the original iterator. Let's try it out with our infinite
iterator from before: iterator from before:
```rust ```rust
# #![feature(step_by)] for i in (1..).take(5) {
for i in (1..).step_by(5).take(5) {
println!("{}", i); println!("{}", i);
} }
``` ```
@ -295,10 +294,10 @@ This will print
```text ```text
1 1
6 2
11 3
16 4
21 5
``` ```
`filter()` is an adapter that takes a closure as an argument. This closure `filter()` is an adapter that takes a closure as an argument. This closure