Rollup merge of #32036 - Seeker14491:patch-1, r=steveklabnik

To me it was unclear whether 'it' referred to the fold function, or the closure.
This commit is contained in:
Steve Klabnik 2016-03-04 14:17:29 -05:00
commit d5aeb769e9

View file

@ -1532,7 +1532,7 @@ pub trait Iterator {
/// 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