From 122199909d608193983fdd3751f947d7a13e8516 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Sat, 25 Oct 2014 16:22:04 +0200 Subject: [PATCH] Guide: Fix off-by-one error --- src/doc/guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/guide.md b/src/doc/guide.md index c7b8e42b28c..811d600df31 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -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}