Skip to content

Commit

Permalink
Rollup merge of rust-lang#33409 - kindlychung:patch-2, r=steveklabnik
Browse files Browse the repository at this point in the history
errors in the doc
  • Loading branch information
steveklabnik committed May 5, 2016
2 parents ed9244a + 16219de commit 551b990
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/iter/iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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` is greater than or equal to the length of the
/// iterator.
///
/// # Examples
Expand All @@ -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];
Expand Down

0 comments on commit 551b990

Please sign in to comment.