Rollup merge of #27612 - vincentbernat:fix/doc/iter-nth, r=steveklabnik

The "nth" element can be confusing. In an array context, we know indexes
start from 0 but one may believe this is not the case with "nth". For
example, would `.nth(1)` return the first (1th/1st) or the second
element?  Rephrase a bit to be less confusing.

r? @steveklabnik
This commit is contained in:
Manish Goregaokar 2015-08-11 13:26:46 +05:30
commit 93f8031303
1 changed files with 1 additions and 2 deletions

View File

@ -148,8 +148,7 @@ pub trait Iterator {
last
}
/// Loops through `n` iterations, returning the `n`th element of the
/// iterator.
/// Skips the `n` first elements of the iterator and returns the next one.
///
/// # Examples
///