about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2016-08-19 21:43:21 -0400
committerCorey Farwell <coreyf@rwell.org>2016-09-03 16:56:22 -0400
commit5652b62a6b1531d95c10c6d62ea57d5af95cd8d7 (patch)
tree3c118b7b4aaf2cc767ee7063215687380628d068
parent100b309fd1b951fa074556f9e3a50354d1ed7923 (diff)
downloadrust-5652b62a6b1531d95c10c6d62ea57d5af95cd8d7.tar.gz
rust-5652b62a6b1531d95c10c6d62ea57d5af95cd8d7.zip
Indicate where `core::result::IntoIter` is created.
-rw-r--r--src/libcore/result.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libcore/result.rs b/src/libcore/result.rs
index 49eb5619bc6..94b6d5fa003 100644
--- a/src/libcore/result.rs
+++ b/src/libcore/result.rs
@@ -902,7 +902,13 @@ impl<'a, T> ExactSizeIterator for IterMut<'a, T> {}
 #[unstable(feature = "fused", issue = "35602")]
 impl<'a, T> FusedIterator for IterMut<'a, T> {}
 
-/// An iterator over the value in a `Ok` variant of a `Result`.
+/// An iterator over the value in a `Ok` variant of a `Result`. This struct is
+/// created by the [`into_iter`] method on [`Result`][`Result`] (provided by
+/// the [`IntoIterator`] trait).
+///
+/// [`Result`]: enum.Result.html
+/// [`into_iter`]: ../iter/trait.IntoIterator.html#tymethod.into_iter
+/// [`IntoIterator`]: ../iter/trait.IntoIterator.html
 #[derive(Debug)]
 #[stable(feature = "rust1", since = "1.0.0")]
 pub struct IntoIter<T> { inner: Option<T> }