doc/core: fix description of nth function

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.
This commit is contained in:
Vincent Bernat 2015-08-09 01:04:59 +02:00
parent cbf4c342cf
commit 721dc47a69

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
///