diff options
| author | Alex Burka <durka42+github@gmail.com> | 2016-07-08 23:14:32 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-08 23:14:32 -0400 |
| commit | b4ff6b028ed6ae2e67d97604ad6bfbd235bb4f74 (patch) | |
| tree | cea1fb7dfb687581658efd296b458443d3b3d99d /src/libcore | |
| parent | 5e18b4bad8450622aef8e077d3470f5626403588 (diff) | |
| download | rust-b4ff6b028ed6ae2e67d97604ad6bfbd235bb4f74.tar.gz rust-b4ff6b028ed6ae2e67d97604ad6bfbd235bb4f74.zip | |
document DoubleEndedIterator::next_back
fixes #34726
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/iter/traits.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libcore/iter/traits.rs b/src/libcore/iter/traits.rs index 9b5c2128f1e..43360b91fda 100644 --- a/src/libcore/iter/traits.rs +++ b/src/libcore/iter/traits.rs @@ -386,10 +386,11 @@ pub trait Extend<A> { /// ``` #[stable(feature = "rust1", since = "1.0.0")] pub trait DoubleEndedIterator: Iterator { - /// An iterator able to yield elements from both ends. + /// Removes and returns an element from the end of the iterator. /// - /// As this is the only method for this trait, the [trait-level] docs - /// contain more details. + /// Returns `None` when there are no more elements. + /// + /// The [trait-level] docs contain more details. /// /// [trait-level]: trait.DoubleEndedIterator.html /// |
