@@ -809,7 +809,7 @@ pub trait Iterator {
809
809
Enumerate :: new ( self )
810
810
}
811
811
812
- /// Creates an iterator which can use `peek` to look at the next element of
812
+ /// Creates an iterator which can use [ `peek`] to look at the next element of
813
813
/// the iterator without consuming it.
814
814
///
815
815
/// Adds a [`peek`] method to an iterator. See its documentation for
@@ -1992,7 +1992,7 @@ pub trait Iterator {
1992
1992
1993
1993
/// The same as [`fold()`], but uses the first element in the
1994
1994
/// iterator as the initial value, folding every subsequent element into it.
1995
- /// If the iterator is empty, return `None`; otherwise, return the result
1995
+ /// If the iterator is empty, return [ `None`] ; otherwise, return the result
1996
1996
/// of the fold.
1997
1997
///
1998
1998
/// [`fold()`]: Iterator::fold
@@ -2821,7 +2821,7 @@ pub trait Iterator {
2821
2821
Product :: product ( self )
2822
2822
}
2823
2823
2824
- /// Lexicographically compares the elements of this `Iterator` with those
2824
+ /// Lexicographically compares the elements of this [ `Iterator`] with those
2825
2825
/// of another.
2826
2826
///
2827
2827
/// # Examples
@@ -2843,7 +2843,7 @@ pub trait Iterator {
2843
2843
self . cmp_by ( other, |x, y| x. cmp ( & y) )
2844
2844
}
2845
2845
2846
- /// Lexicographically compares the elements of this `Iterator` with those
2846
+ /// Lexicographically compares the elements of this [ `Iterator`] with those
2847
2847
/// of another with respect to the specified comparison function.
2848
2848
///
2849
2849
/// # Examples
@@ -2895,7 +2895,7 @@ pub trait Iterator {
2895
2895
}
2896
2896
}
2897
2897
2898
- /// Lexicographically compares the elements of this `Iterator` with those
2898
+ /// Lexicographically compares the elements of this [ `Iterator`] with those
2899
2899
/// of another.
2900
2900
///
2901
2901
/// # Examples
@@ -2919,7 +2919,7 @@ pub trait Iterator {
2919
2919
self . partial_cmp_by ( other, |x, y| x. partial_cmp ( & y) )
2920
2920
}
2921
2921
2922
- /// Lexicographically compares the elements of this `Iterator` with those
2922
+ /// Lexicographically compares the elements of this [ `Iterator`] with those
2923
2923
/// of another with respect to the specified comparison function.
2924
2924
///
2925
2925
/// # Examples
@@ -2980,7 +2980,7 @@ pub trait Iterator {
2980
2980
}
2981
2981
}
2982
2982
2983
- /// Determines if the elements of this `Iterator` are equal to those of
2983
+ /// Determines if the elements of this [ `Iterator`] are equal to those of
2984
2984
/// another.
2985
2985
///
2986
2986
/// # Examples
@@ -2999,7 +2999,7 @@ pub trait Iterator {
2999
2999
self . eq_by ( other, |x, y| x == y)
3000
3000
}
3001
3001
3002
- /// Determines if the elements of this `Iterator` are equal to those of
3002
+ /// Determines if the elements of this [ `Iterator`] are equal to those of
3003
3003
/// another with respect to the specified equality function.
3004
3004
///
3005
3005
/// # Examples
@@ -3040,7 +3040,7 @@ pub trait Iterator {
3040
3040
}
3041
3041
}
3042
3042
3043
- /// Determines if the elements of this `Iterator` are unequal to those of
3043
+ /// Determines if the elements of this [ `Iterator`] are unequal to those of
3044
3044
/// another.
3045
3045
///
3046
3046
/// # Examples
@@ -3059,7 +3059,7 @@ pub trait Iterator {
3059
3059
!self . eq ( other)
3060
3060
}
3061
3061
3062
- /// Determines if the elements of this `Iterator` are lexicographically
3062
+ /// Determines if the elements of this [ `Iterator`] are lexicographically
3063
3063
/// less than those of another.
3064
3064
///
3065
3065
/// # Examples
@@ -3080,7 +3080,7 @@ pub trait Iterator {
3080
3080
self . partial_cmp ( other) == Some ( Ordering :: Less )
3081
3081
}
3082
3082
3083
- /// Determines if the elements of this `Iterator` are lexicographically
3083
+ /// Determines if the elements of this [ `Iterator`] are lexicographically
3084
3084
/// less or equal to those of another.
3085
3085
///
3086
3086
/// # Examples
@@ -3101,7 +3101,7 @@ pub trait Iterator {
3101
3101
matches ! ( self . partial_cmp( other) , Some ( Ordering :: Less | Ordering :: Equal ) )
3102
3102
}
3103
3103
3104
- /// Determines if the elements of this `Iterator` are lexicographically
3104
+ /// Determines if the elements of this [ `Iterator`] are lexicographically
3105
3105
/// greater than those of another.
3106
3106
///
3107
3107
/// # Examples
@@ -3122,7 +3122,7 @@ pub trait Iterator {
3122
3122
self . partial_cmp ( other) == Some ( Ordering :: Greater )
3123
3123
}
3124
3124
3125
- /// Determines if the elements of this `Iterator` are lexicographically
3125
+ /// Determines if the elements of this [ `Iterator`] are lexicographically
3126
3126
/// greater than or equal to those of another.
3127
3127
///
3128
3128
/// # Examples
0 commit comments