Skip to content

Commit ca86803

Browse files
author
Jonathan Turner
authored
Rollup merge of rust-lang#35845 - frewsxcv:result-into-iter, r=GuillaumeGomez
Indicate where `core::result::IntoIter` is created. None
2 parents 0838334 + f4d55e1 commit ca86803

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)