File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -894,9 +894,15 @@ impl<A> ExactSizeIterator for Item<A> {}
894
894
impl < A > FusedIterator for Item < A > { }
895
895
unsafe impl < A > TrustedLen for Item < A > { }
896
896
897
- /// An iterator over a reference of the contained item in an [`Option`].
897
+ /// An iterator over a reference to the [`Some`] variant of an [`Option`].
898
+ ///
899
+ /// The iterator yields one value if the [`Option`] is a [`Some`] variant, otherwise none.
900
+ ///
901
+ /// This `struct` is created by [`Option::iter`] function.
898
902
///
899
903
/// [`Option`]: enum.Option.html
904
+ /// [`Some`]: enum.Option.html#variant.Some
905
+ /// [`Option::iter`]: enum.Option.html#method.iter
900
906
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
901
907
#[ derive( Debug ) ]
902
908
pub struct Iter < ' a , A : ' a > { inner : Item < & ' a A > }
You can’t perform that action at this time.
0 commit comments