about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-06-02 11:14:08 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-06-02 11:14:08 +0530
commit98612dad9b0fa66ad9c8d382b5f0a02de76aa357 (patch)
tree0714384baf1f1ce7b8bc92e9b7f89cbf804e7d93
parenta85150b58aa33213ea3df746a980b1cbd690a612 (diff)
parent5fefae684a6284244541dbe7c86da6b052181dfa (diff)
downloadrust-98612dad9b0fa66ad9c8d382b5f0a02de76aa357.tar.gz
rust-98612dad9b0fa66ad9c8d382b5f0a02de76aa357.zip
Rollup merge of #25941 - puzza007:trpl-infinite-iterator-chain-take, r=steveklabnik
-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)