about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnatol Ulrich <anatol.ulrich@ferrous-systems.com>2021-06-07 19:55:33 +0200
committerAnatol Ulrich <anatol.ulrich@ferrous-systems.com>2021-06-07 19:55:33 +0200
commit39ba856151c97f085dc22c4e21579b4183ac9a28 (patch)
treeccfbb82c61693dcb759377383b4d0e26718876eb
parente4a60327063e82413eed50a10df3b7d19b77bda0 (diff)
downloadrust-39ba856151c97f085dc22c4e21579b4183ac9a28.tar.gz
rust-39ba856151c97f085dc22c4e21579b4183ac9a28.zip
fix off by one
-rw-r--r--library/core/src/iter/traits/iterator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/iter/traits/iterator.rs b/library/core/src/iter/traits/iterator.rs
index 96b924f6e2a..eeefaacfa4c 100644
--- a/library/core/src/iter/traits/iterator.rs
+++ b/library/core/src/iter/traits/iterator.rs
@@ -138,7 +138,7 @@ pub trait Iterator {
     /// A more complex example:
     ///
     /// ```
-    /// // The even numbers from zero to ten.
+    /// // The even numbers from zero to nine.
     /// let iter = (0..10).filter(|x| x % 2 == 0);
     ///
     /// // We might iterate from zero to ten times. Knowing that it's five