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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue