From 84e6e04d83d02e09e8b659267e415ec8b5bc2a24 Mon Sep 17 00:00:00 2001 From: Brian Bowman Date: Fri, 4 Mar 2016 01:09:23 -0600 Subject: [PATCH] Clarify ambiguous wording in fold() docs To me it was unclear whether 'it' referred to the fold function, or the closure. --- src/libcore/iter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index d6bd9dbf4bd..a730b9bd518 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -1532,7 +1532,7 @@ fn partition(self, mut f: F) -> (B, B) where /// An iterator adaptor that applies a function, producing a single, final value. /// /// `fold()` takes two arguments: an initial value, and a closure with two - /// arguments: an 'accumulator', and an element. It returns the value that + /// arguments: an 'accumulator', and an element. The closure returns the value that /// the accumulator should have for the next iteration. /// /// The initial value is the value the accumulator will have on the first -- 2.44.0