Skip to content

Commit 4c0609a

Browse files
Merge #638
638: Chore: update tree_fold1 doc to remove reference to deprecated fold1 r=phimuemue a=willemneal Not sure if this is needed, but I thought since it's deprecated it's best to move away from it. Co-authored-by: Willem Wyndham <wyndham@cs.unc.edu>
2 parents 7a27408 + 677900a commit 4c0609a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2271,15 +2271,15 @@ pub trait Itertools : Iterator {
22712271
/// ```
22722272
///
22732273
/// 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`]:
22752275
///
22762276
/// ```text
22772277
/// 1 2 3 4 5 6 7
22782278
/// │ │ │ │ │ │ │
22792279
/// └─f─f─f─f─f─f
22802280
/// ```
22812281
///
2282-
/// If `f` is associative, prefer the normal `fold1` instead.
2282+
/// If `f` is associative, prefer the normal [`Iterator::reduce`] instead.
22832283
///
22842284
/// ```
22852285
/// use itertools::Itertools;

0 commit comments

Comments
 (0)