Skip to content

Commit

Permalink
Rollup merge of rust-lang#35845 - frewsxcv:result-into-iter, r=Guilla…
Browse files Browse the repository at this point in the history
…umeGomez

Indicate where `core::result::IntoIter` is created.

None
  • Loading branch information
Jonathan Turner committed Aug 22, 2016
2 parents 0838334 + f4d55e1 commit ca86803
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/libcore/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,13 @@ impl<'a, T> DoubleEndedIterator for IterMut<'a, T> {
#[stable(feature = "rust1", since = "1.0.0")]
impl<'a, T> ExactSizeIterator 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`]: struct.Result.html
/// [`into_iter`]: ../../std/iter/trait.IntoIterator.html#tymethod.into_iter
/// [`IntoIterator`]: ../../std/iter/trait.IntoIterator.html
#[derive(Debug)]
#[stable(feature = "rust1", since = "1.0.0")]
pub struct IntoIter<T> { inner: Option<T> }
Expand Down

0 comments on commit ca86803

Please sign in to comment.