about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSteve Gury <steve.gury@gmail.com>2015-05-31 10:24:30 -0700
committerSteve Gury <steve.gury@gmail.com>2015-05-31 10:24:30 -0700
commitbef936111dd3c65b668d85f8201586e73b325bfa (patch)
treed4fdbbeb5d4af8a60584592bd80cd282c040a49d /src
parent4425422bddaf0030b618d23e8e6526f842bb824a (diff)
downloadrust-bef936111dd3c65b668d85f8201586e73b325bfa.tar.gz
rust-bef936111dd3c65b668d85f8201586e73b325bfa.zip
Update iterators.md
Fix the actual off by one
Diffstat (limited to 'src')
-rw-r--r--src/doc/trpl/iterators.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/trpl/iterators.md b/src/doc/trpl/iterators.md
index 9ba4c0d9831..c391a0ea9b6 100644
--- a/src/doc/trpl/iterators.md
+++ b/src/doc/trpl/iterators.md
@@ -213,7 +213,7 @@ As we've said before, an iterator is something that we can call the
 `.next()` method on repeatedly, and it gives us a sequence of things.
 Because you need to call the method, this means that iterators
 can be *lazy* and not generate all of the values upfront. This code,
-for example, does not actually generate the numbers `1-100`, instead
+for example, does not actually generate the numbers `1-99`, instead
 creating a value that merely represents the sequence:
 
 ```rust
@@ -259,7 +259,7 @@ a new iterator. The simplest one is called `map`:
 
 `map` is called upon another iterator, and produces a new iterator where each
 element reference has the closure it's been given as an argument called on it.
-So this would give us the numbers from `2-101`. Well, almost! If you
+So this would give us the numbers from `2-100`. Well, almost! If you
 compile the example, you'll get a warning:
 
 ```text