]> git.lizzy.rs Git - rust.git/commitdiff
Indicate where `core::result::IntoIter` is created.
authorCorey Farwell <coreyf@rwell.org>
Sat, 20 Aug 2016 01:43:21 +0000 (21:43 -0400)
committerCorey Farwell <coreyf@rwell.org>
Sat, 3 Sep 2016 20:56:22 +0000 (16:56 -0400)
src/libcore/result.rs

index 49eb5619bc6baafa72ea7b32a6e9259656e67a24..94b6d5fa0031a9fbd867e15c33e4f8eed5069dfc 100644 (file)
@@ -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> }