From 955927f6c424f895ad7519d413bc5718e6ad26bf Mon Sep 17 00:00:00 2001 From: RobWalt Date: Fri, 20 Oct 2023 21:10:32 +0200 Subject: [PATCH] chore: fixup docs of tree_fold1 --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index c8422f531..2a450bd8f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2499,7 +2499,8 @@ pub trait Itertools: Iterator { /// └─f─f─f─f─f─f /// ``` /// - /// If `f` is associative, prefer the normal [`Iterator::reduce`] instead. + /// If `f` is non-associative, prefer the normal [`Iterator::reduce`] instead to prevent + /// unexpected behavior unless you know what you're doing. /// /// ``` /// use itertools::Itertools;