Skip to content

Commit acf98d9

Browse files
committed
Rollup merge of rust-lang#35845 - frewsxcv:result-into-iter, r=GuillaumeGomez
Indicate where `core::result::IntoIter` is created. None
2 parents 86995dc + 5652b62 commit acf98d9

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
@@ -902,7 +902,13 @@ impl<'a, T> ExactSizeIterator for IterMut<'a, T> {}
902902
#[unstable(feature = "fused", issue = "35602")]
903903
impl<'a, T> FusedIterator for IterMut<'a, T> {}
904904

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

0 commit comments

Comments
 (0)