@@ -902,6 +902,8 @@ macro_rules! make_mut_slice {
902
902
903
903
/// Immutable slice iterator
904
904
///
905
+ /// This struct is created by the [`iter`] method on [slices].
906
+ ///
905
907
/// # Examples
906
908
///
907
909
/// Basic usage:
@@ -915,6 +917,9 @@ macro_rules! make_mut_slice {
915
917
/// println!("{}", element);
916
918
/// }
917
919
/// ```
920
+ ///
921
+ /// [`iter`]: ../../std/primitive.slice.html#method.iter
922
+ /// [slices]: ../../std/primitive.slice.html
918
923
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
919
924
pub struct Iter < ' a , T : ' a > {
920
925
ptr : * const T ,
@@ -993,6 +998,8 @@ impl<'a, T> Clone for Iter<'a, T> {
993
998
994
999
/// Mutable slice iterator.
995
1000
///
1001
+ /// This struct is created by the [`iter_mut`] method on [slices].
1002
+ ///
996
1003
/// # Examples
997
1004
///
998
1005
/// Basic usage:
@@ -1010,6 +1017,9 @@ impl<'a, T> Clone for Iter<'a, T> {
1010
1017
/// // We now have "[2, 3, 4]":
1011
1018
/// println!("{:?}", slice);
1012
1019
/// ```
1020
+ ///
1021
+ /// [`iter_mut`]: ../../std/primitive.slice.html#method.iter_mut
1022
+ /// [slices]: ../../std/primitive.slice.html
1013
1023
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1014
1024
pub struct IterMut < ' a , T : ' a > {
1015
1025
ptr : * mut T ,
0 commit comments