Skip to content

Commit 98612da

Browse files
committed
Rollup merge of rust-lang#25941 - puzza007:trpl-infinite-iterator-chain-take, r=steveklabnik
2 parents a85150b + 5fefae6 commit 98612da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/trpl/iterators.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ You can chain all three things together: start with an iterator, adapt it
321321
a few times, and then consume the result. Check it out:
322322

323323
```rust
324-
(1..1000)
324+
(1..)
325325
.filter(|&x| x % 2 == 0)
326326
.filter(|&x| x % 3 == 0)
327327
.take(5)

0 commit comments

Comments
 (0)