From 5fefae684a6284244541dbe7c86da6b052181dfa Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Mon, 1 Jun 2015 12:44:50 +0200 Subject: [PATCH] trpl: Use infinite iterator in chain example with take --- src/doc/trpl/iterators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/trpl/iterators.md b/src/doc/trpl/iterators.md index c391a0ea9b6ea..249c1cc7e34f6 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)