errors in the doc
This commit is contained in:
parent
3157691f96
commit
2ca31205f3
1 changed files with 2 additions and 2 deletions
|
@ -214,7 +214,7 @@ pub trait Iterator {
|
|||
/// Like most indexing operations, the count starts from zero, so `nth(0)`
|
||||
/// returns the first value, `nth(1)` the second, and so on.
|
||||
///
|
||||
/// `nth()` will return `None` if `n` is larger than the length of the
|
||||
/// `nth()` will return `None` if `n` >= the length of the
|
||||
/// iterator.
|
||||
///
|
||||
/// # Examples
|
||||
|
@ -237,7 +237,7 @@ pub trait Iterator {
|
|||
/// assert_eq!(iter.nth(1), None);
|
||||
/// ```
|
||||
///
|
||||
/// Returning `None` if there are less than `n` elements:
|
||||
/// Returning `None` if there are less than `n + 1` elements:
|
||||
///
|
||||
/// ```
|
||||
/// let a = [1, 2, 3];
|
||||
|
|
Loading…
Add table
Reference in a new issue