]> git.lizzy.rs Git - rust.git/commitdiff
Guide: Fix off-by-one error
authorDaniel Hofstetter <daniel.hofstetter@42dh.com>
Sat, 25 Oct 2014 14:22:04 +0000 (16:22 +0200)
committerDaniel Hofstetter <daniel.hofstetter@42dh.com>
Sat, 25 Oct 2014 14:22:04 +0000 (16:22 +0200)
src/doc/guide.md

index c7b8e42b28cde24c6f10f488cb32c14910d01e2b..811d600df31f2f9a224f3386fd6afe0702b4d593 100644 (file)
@@ -4474,7 +4474,7 @@ range(1i, 100i).map(|x| x + 1i);
 
 `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:
 
 ```{notrust,ignore}