diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-01-26 13:11:58 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-01-26 13:11:58 +0530 |
| commit | 79157b3fb5d534500caf9c5f2a40161bea01e79d (patch) | |
| tree | 812b6e0d57a0f74ed7e698db3133b8d86615b314 | |
| parent | 486fd89b34b86c756722105fc50c12486a578f28 (diff) | |
| parent | 2d0e4ed0aaa422c0fa6e797c635f22aa607469b0 (diff) | |
| download | rust-79157b3fb5d534500caf9c5f2a40161bea01e79d.tar.gz rust-79157b3fb5d534500caf9c5f2a40161bea01e79d.zip | |
Rollup merge of #31201 - steveklabnik:gh30633, r=alexcrichton
Fixes #30633
| -rw-r--r-- | src/libcore/iter.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index e3e783329ec..ddc4fb32cde 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -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: |
