trpl: Use infinite iterator in chain example with take

This commit is contained in:
Paul Oliver 2015-06-01 12:44:50 +02:00
parent baf508ba20
commit 5fefae684a
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ You can chain all three things together: start with an iterator, adapt it
a few times, and then consume the result. Check it out:
```rust
(1..1000)
(1..)
.filter(|&x| x % 2 == 0)
.filter(|&x| x % 3 == 0)
.take(5)