Skip to content

Commit

Permalink
Merge #638
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bors[bot] and willemneal authored Aug 25, 2022
2 parents 7a27408 + 677900a commit 4c0609a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2271,15 +2271,15 @@ pub trait Itertools : Iterator {
/// ```
///
/// Which, for non-associative functions, will typically produce a different
/// result than the linear call tree used by `fold1`:
/// result than the linear call tree used by [`Iterator::reduce`]:
///
/// ```text
/// 1 2 3 4 5 6 7
/// │ │ │ │ │ │ │
/// └─f─f─f─f─f─f
/// ```
///
/// If `f` is associative, prefer the normal `fold1` instead.
/// If `f` is associative, prefer the normal [`Iterator::reduce`] instead.
///
/// ```
/// use itertools::Itertools;
Expand Down

0 comments on commit 4c0609a

Please sign in to comment.