mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 06:28:20 +03:00
fix off by one
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user