mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-28 15:43:21 +00:00
Rollup merge of #86111 - spookyvision:master, r=JohnTitor
fix off by one in `std::iter::Iterator` documentation the range `(0..10)` is documented as "The even numbers from zero to ten." - should be ".. to nine".
This commit is contained in:
commit
6a292ebdcf
@ -138,7 +138,7 @@ pub trait Iterator {
|
||||
/// A more complex example:
|
||||
///
|
||||
/// ```
|
||||
/// // The even numbers from zero to ten.
|
||||
/// // The even numbers in the range of 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
|
||||
|
Loading…
Reference in New Issue
Block a user