about summary refs log tree commit diff
path: root/src/doc/trpl
diff options
context:
space:
mode:
authorPaul Oliver <puzza007@gmail.com>2015-06-01 12:44:50 +0200
committerPaul Oliver <puzza007@gmail.com>2015-06-01 12:44:50 +0200
commit5fefae684a6284244541dbe7c86da6b052181dfa (patch)
treee4d596773922aea7b4591453f3527cfc460fa53b /src/doc/trpl
parentbaf508ba20d483513b4b5633ff1861d9fc0c92da (diff)
downloadrust-5fefae684a6284244541dbe7c86da6b052181dfa.tar.gz
rust-5fefae684a6284244541dbe7c86da6b052181dfa.zip
trpl: Use infinite iterator in chain example with take
Diffstat (limited to 'src/doc/trpl')
-rw-r--r--src/doc/trpl/iterators.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/iterators.md b/src/doc/trpl/iterators.md
index c391a0ea9b6..249c1cc7e34 100644
--- a/src/doc/trpl/iterators.md
+++ b/src/doc/trpl/iterators.md
@@ -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)