File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2271,15 +2271,15 @@ pub trait Itertools : Iterator {
2271
2271
/// ```
2272
2272
///
2273
2273
/// Which, for non-associative functions, will typically produce a different
2274
- /// result than the linear call tree used by `fold1` :
2274
+ /// result than the linear call tree used by [`Iterator::reduce`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.reduce) :
2275
2275
///
2276
2276
/// ```text
2277
2277
/// 1 2 3 4 5 6 7
2278
2278
/// │ │ │ │ │ │ │
2279
2279
/// └─f─f─f─f─f─f
2280
2280
/// ```
2281
2281
///
2282
- /// If `f` is associative, prefer the normal `fold1` instead.
2282
+ /// If `f` is associative, prefer the normal [`Iterator::reduce`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.reduce) instead.
2283
2283
///
2284
2284
/// ```
2285
2285
/// use itertools::Itertools;
You can’t perform that action at this time.
0 commit comments