fix off by one

This commit is contained in:
Anatol Ulrich
2021-06-07 19:55:33 +02:00
parent e4a6032706
commit 39ba856151
+1 -1
View File
@@ -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