From 5652b62a6b1531d95c10c6d62ea57d5af95cd8d7 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Fri, 19 Aug 2016 21:43:21 -0400 Subject: [PATCH] Indicate where `core::result::IntoIter` is created. --- src/libcore/result.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/libcore/result.rs b/src/libcore/result.rs index 49eb5619bc6ba..94b6d5fa0031a 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 { inner: Option }