@@ -819,7 +819,7 @@ pub trait Iterator {
819
819
Enumerate :: new ( self )
820
820
}
821
821
822
- /// Creates an iterator which can use `peek` to look at the next element of
822
+ /// Creates an iterator which can use [ `peek`] to look at the next element of
823
823
/// the iterator without consuming it.
824
824
///
825
825
/// Adds a [`peek`] method to an iterator. See its documentation for
@@ -2002,7 +2002,7 @@ pub trait Iterator {
2002
2002
2003
2003
/// The same as [`fold()`], but uses the first element in the
2004
2004
/// iterator as the initial value, folding every subsequent element into it.
2005
- /// If the iterator is empty, return `None`; otherwise, return the result
2005
+ /// If the iterator is empty, return [ `None`] ; otherwise, return the result
2006
2006
/// of the fold.
2007
2007
///
2008
2008
/// [`fold()`]: Iterator::fold
@@ -2831,7 +2831,7 @@ pub trait Iterator {
2831
2831
Product :: product ( self )
2832
2832
}
2833
2833
2834
- /// Lexicographically compares the elements of this `Iterator` with those
2834
+ /// Lexicographically compares the elements of this [ `Iterator`] with those
2835
2835
/// of another.
2836
2836
///
2837
2837
/// # Examples
@@ -2853,7 +2853,7 @@ pub trait Iterator {
2853
2853
self . cmp_by ( other, |x, y| x. cmp ( & y) )
2854
2854
}
2855
2855
2856
- /// Lexicographically compares the elements of this `Iterator` with those
2856
+ /// Lexicographically compares the elements of this [ `Iterator`] with those
2857
2857
/// of another with respect to the specified comparison function.
2858
2858
///
2859
2859
/// # Examples
@@ -2905,7 +2905,7 @@ pub trait Iterator {
2905
2905
}
2906
2906
}
2907
2907
2908
- /// Lexicographically compares the elements of this `Iterator` with those
2908
+ /// Lexicographically compares the elements of this [ `Iterator`] with those
2909
2909
/// of another.
2910
2910
///
2911
2911
/// # Examples
@@ -2929,7 +2929,7 @@ pub trait Iterator {
2929
2929
self . partial_cmp_by ( other, |x, y| x. partial_cmp ( & y) )
2930
2930
}
2931
2931
2932
- /// Lexicographically compares the elements of this `Iterator` with those
2932
+ /// Lexicographically compares the elements of this [ `Iterator`] with those
2933
2933
/// of another with respect to the specified comparison function.
2934
2934
///
2935
2935
/// # Examples
@@ -2990,7 +2990,7 @@ pub trait Iterator {
2990
2990
}
2991
2991
}
2992
2992
2993
- /// Determines if the elements of this `Iterator` are equal to those of
2993
+ /// Determines if the elements of this [ `Iterator`] are equal to those of
2994
2994
/// another.
2995
2995
///
2996
2996
/// # Examples
@@ -3009,7 +3009,7 @@ pub trait Iterator {
3009
3009
self . eq_by ( other, |x, y| x == y)
3010
3010
}
3011
3011
3012
- /// Determines if the elements of this `Iterator` are equal to those of
3012
+ /// Determines if the elements of this [ `Iterator`] are equal to those of
3013
3013
/// another with respect to the specified equality function.
3014
3014
///
3015
3015
/// # Examples
@@ -3050,7 +3050,7 @@ pub trait Iterator {
3050
3050
}
3051
3051
}
3052
3052
3053
- /// Determines if the elements of this `Iterator` are unequal to those of
3053
+ /// Determines if the elements of this [ `Iterator`] are unequal to those of
3054
3054
/// another.
3055
3055
///
3056
3056
/// # Examples
@@ -3069,7 +3069,7 @@ pub trait Iterator {
3069
3069
!self . eq ( other)
3070
3070
}
3071
3071
3072
- /// Determines if the elements of this `Iterator` are lexicographically
3072
+ /// Determines if the elements of this [ `Iterator`] are lexicographically
3073
3073
/// less than those of another.
3074
3074
///
3075
3075
/// # Examples
@@ -3090,7 +3090,7 @@ pub trait Iterator {
3090
3090
self . partial_cmp ( other) == Some ( Ordering :: Less )
3091
3091
}
3092
3092
3093
- /// Determines if the elements of this `Iterator` are lexicographically
3093
+ /// Determines if the elements of this [ `Iterator`] are lexicographically
3094
3094
/// less or equal to those of another.
3095
3095
///
3096
3096
/// # Examples
@@ -3111,7 +3111,7 @@ pub trait Iterator {
3111
3111
matches ! ( self . partial_cmp( other) , Some ( Ordering :: Less | Ordering :: Equal ) )
3112
3112
}
3113
3113
3114
- /// Determines if the elements of this `Iterator` are lexicographically
3114
+ /// Determines if the elements of this [ `Iterator`] are lexicographically
3115
3115
/// greater than those of another.
3116
3116
///
3117
3117
/// # Examples
@@ -3132,7 +3132,7 @@ pub trait Iterator {
3132
3132
self . partial_cmp ( other) == Some ( Ordering :: Greater )
3133
3133
}
3134
3134
3135
- /// Determines if the elements of this `Iterator` are lexicographically
3135
+ /// Determines if the elements of this [ `Iterator`] are lexicographically
3136
3136
/// greater than or equal to those of another.
3137
3137
///
3138
3138
/// # Examples
0 commit comments