Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Describe next_back() wrt Iterator protocol
Fixes #30633
  • Loading branch information
steveklabnik committed Jan 26, 2016
1 parent 0486e12 commit 2d0e4ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/libcore/iter.rs
Expand Up @@ -2740,7 +2740,13 @@ pub trait Extend<A> {
/// It is important to note that both back and forth work on the same range,
/// and do not cross: iteration is over when they meet in the middle.
///
/// In a similar fashion to the [`Iterator`] protocol, once a
/// `DoubleEndedIterator` returns `None` from a `next_back()`, calling it again
/// may or may not ever return `Some` again. `next()` and `next_back()` are
/// interchangable for this purpose.
///
/// [`Iterator`]: trait.Iterator.html
///
/// # Examples
///
/// Basic usage:
Expand Down

0 comments on commit 2d0e4ed

Please sign in to comment.