@@ -507,7 +507,7 @@ impl<T, E> Result<T, E> {
507
507
508
508
/// Returns an iterator over the possibly contained value.
509
509
///
510
- /// The iterator yields one value if the result is [`Ok`], otherwise none.
510
+ /// The iterator yields one value if the result is [`Result:: Ok`], otherwise none.
511
511
///
512
512
/// # Examples
513
513
///
@@ -520,8 +520,6 @@ impl<T, E> Result<T, E> {
520
520
/// let x: Result<u32, &str> = Err("nothing!");
521
521
/// assert_eq!(x.iter().next(), None);
522
522
/// ```
523
- ///
524
- /// [`Ok`]: enum.Result.html#variant.Ok
525
523
#[ inline]
526
524
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
527
525
pub fn iter ( & self ) -> Iter < T > {
@@ -530,7 +528,7 @@ impl<T, E> Result<T, E> {
530
528
531
529
/// Returns a mutable iterator over the possibly contained value.
532
530
///
533
- /// The iterator yields one value if the result is [`Ok`], otherwise none.
531
+ /// The iterator yields one value if the result is [`Result:: Ok`], otherwise none.
534
532
///
535
533
/// # Examples
536
534
///
@@ -547,8 +545,6 @@ impl<T, E> Result<T, E> {
547
545
/// let mut x: Result<u32, &str> = Err("nothing!");
548
546
/// assert_eq!(x.iter_mut().next(), None);
549
547
/// ```
550
- ///
551
- /// [`Ok`]: enum.Result.html#variant.Ok
552
548
#[ inline]
553
549
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
554
550
pub fn iter_mut ( & mut self ) -> IterMut < T > {
@@ -994,7 +990,7 @@ impl<T, E> IntoIterator for Result<T, E> {
994
990
995
991
/// Returns a consuming iterator over the possibly contained value.
996
992
///
997
- /// The iterator yields one value if the result is [`Ok`], otherwise none.
993
+ /// The iterator yields one value if the result is [`Result:: Ok`], otherwise none.
998
994
///
999
995
/// # Examples
1000
996
///
@@ -1009,8 +1005,6 @@ impl<T, E> IntoIterator for Result<T, E> {
1009
1005
/// let v: Vec<u32> = x.into_iter().collect();
1010
1006
/// assert_eq!(v, []);
1011
1007
/// ```
1012
- ///
1013
- /// [`Ok`]: enum.Result.html#variant.Ok
1014
1008
#[ inline]
1015
1009
fn into_iter ( self ) -> IntoIter < T > {
1016
1010
IntoIter { inner : self . ok ( ) }
0 commit comments