@@ -2164,16 +2164,16 @@ pub trait Iterator {
2164
2164
}
2165
2165
}
2166
2166
2167
- /// Select an element from an iterator based on the given projection
2167
+ /// Select an element from an iterator based on the given " projection"
2168
2168
/// and "comparison" function.
2169
2169
///
2170
2170
/// This is an idiosyncratic helper to try to factor out the
2171
2171
/// commonalities of {max,min}{,_by}. In particular, this avoids
2172
2172
/// having to implement optimizations several times.
2173
2173
#[ inline]
2174
- fn select_fold1 < I , B , FProj , FCmp > ( mut it : I ,
2175
- mut f_proj : FProj ,
2176
- mut f_cmp : FCmp ) -> Option < ( B , I :: Item ) >
2174
+ fn select_fold1 < I , B , FProj , FCmp > ( mut it : I ,
2175
+ mut f_proj : FProj ,
2176
+ mut f_cmp : FCmp ) -> Option < ( B , I :: Item ) >
2177
2177
where I : Iterator ,
2178
2178
FProj : FnMut ( & I :: Item ) -> B ,
2179
2179
FCmp : FnMut ( & B , & I :: Item , & B , & I :: Item ) -> bool
@@ -2186,7 +2186,7 @@ fn select_fold1<I,B, FProj, FCmp>(mut it: I,
2186
2186
2187
2187
for x in it {
2188
2188
let x_p = f_proj ( & x) ;
2189
- if f_cmp ( & sel_p, & sel, & x_p, & x) {
2189
+ if f_cmp ( & sel_p, & sel, & x_p, & x) {
2190
2190
sel = x;
2191
2191
sel_p = x_p;
2192
2192
}
0 commit comments