@@ -507,7 +507,7 @@ impl<T, E> Result<T, E> {
507507
508508 /// Returns an iterator over the possibly contained value.
509509 ///
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.
511511 ///
512512 /// # Examples
513513 ///
@@ -520,8 +520,6 @@ impl<T, E> Result<T, E> {
520520 /// let x: Result<u32, &str> = Err("nothing!");
521521 /// assert_eq!(x.iter().next(), None);
522522 /// ```
523- ///
524- /// [`Ok`]: enum.Result.html#variant.Ok
525523 #[ inline]
526524 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
527525 pub fn iter ( & self ) -> Iter < T > {
@@ -530,7 +528,7 @@ impl<T, E> Result<T, E> {
530528
531529 /// Returns a mutable iterator over the possibly contained value.
532530 ///
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.
534532 ///
535533 /// # Examples
536534 ///
@@ -547,8 +545,6 @@ impl<T, E> Result<T, E> {
547545 /// let mut x: Result<u32, &str> = Err("nothing!");
548546 /// assert_eq!(x.iter_mut().next(), None);
549547 /// ```
550- ///
551- /// [`Ok`]: enum.Result.html#variant.Ok
552548 #[ inline]
553549 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
554550 pub fn iter_mut ( & mut self ) -> IterMut < T > {
@@ -994,7 +990,7 @@ impl<T, E> IntoIterator for Result<T, E> {
994990
995991 /// Returns a consuming iterator over the possibly contained value.
996992 ///
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.
998994 ///
999995 /// # Examples
1000996 ///
@@ -1009,8 +1005,6 @@ impl<T, E> IntoIterator for Result<T, E> {
10091005 /// let v: Vec<u32> = x.into_iter().collect();
10101006 /// assert_eq!(v, []);
10111007 /// ```
1012- ///
1013- /// [`Ok`]: enum.Result.html#variant.Ok
10141008 #[ inline]
10151009 fn into_iter ( self ) -> IntoIter < T > {
10161010 IntoIter { inner : self . ok ( ) }
0 commit comments