Skip to content

Commit 39ba856

Browse files
author
Anatol Ulrich
committed
fix off by one
1 parent e4a6032 commit 39ba856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/iter/traits/iterator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ pub trait Iterator {
138138
/// A more complex example:
139139
///
140140
/// ```
141-
/// // The even numbers from zero to ten.
141+
/// // The even numbers from zero to nine.
142142
/// let iter = (0..10).filter(|x| x % 2 == 0);
143143
///
144144
/// // We might iterate from zero to ten times. Knowing that it's five

0 commit comments

Comments
 (0)