Skip to content

Commit f4d55e1

Browse files
committedAug 20, 2016
Indicate where core::result::IntoIter is created.
1 parent f883b0b commit f4d55e1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎src/libcore/result.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,13 @@ impl<'a, T> DoubleEndedIterator for IterMut<'a, T> {
901901
#[stable(feature = "rust1", since = "1.0.0")]
902902
impl<'a, T> ExactSizeIterator for IterMut<'a, T> {}
903903

904-
/// An iterator over the value in a `Ok` variant of a `Result`.
904+
/// An iterator over the value in a `Ok` variant of a `Result`. This struct is
905+
/// created by the [`into_iter`] method on [`Result`][`Result`] (provided by
906+
/// the [`IntoIterator`] trait).
907+
///
908+
/// [`Result`]: struct.Result.html
909+
/// [`into_iter`]: ../../std/iter/trait.IntoIterator.html#tymethod.into_iter
910+
/// [`IntoIterator`]: ../../std/iter/trait.IntoIterator.html
905911
#[derive(Debug)]
906912
#[stable(feature = "rust1", since = "1.0.0")]
907913
pub struct IntoIter<T> { inner: Option<T> }

0 commit comments

Comments
 (0)
Please sign in to comment.