We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2f2a64 commit 4500019Copy full SHA for 4500019
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
285
iterator from before:
286
287
```rust
288
-# #![feature(step_by)]
289
-for i in (1..).step_by(5).take(5) {
+for i in (1..).take(5) {
290
println!("{}", i);
291
}
292
```
@@ -295,10 +294,10 @@ This will print
295
294
296
```text
297
1
298
-6
299
-11
300
-16
301
-21
+2
+3
+4
+5
302
303
304
`filter()` is an adapter that takes a closure as an argument. This closure
0 commit comments