about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-09-05 11:02:03 +0800
committerManish Goregaokar <manishsmail@gmail.com>2016-09-05 14:53:08 +0800
commitacf98d99f928126a98e44fdfa3f5958ac563eb7e (patch)
tree4be5c6f62266ed1aa35837b5c11c91142f1a67a2 /src
parent86995dc8c56b3c2923dff8a4bb79fed7c60a4396 (diff)
parent5652b62a6b1531d95c10c6d62ea57d5af95cd8d7 (diff)
downloadrust-acf98d99f928126a98e44fdfa3f5958ac563eb7e.tar.gz
rust-acf98d99f928126a98e44fdfa3f5958ac563eb7e.zip
Rollup merge of #35845 - frewsxcv:result-into-iter, r=GuillaumeGomez
Indicate where `core::result::IntoIter` is created.

None
Diffstat (limited to 'src')
-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> }