about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorBrian Bowman <seeker14491@gmail.com>2016-03-04 01:09:23 -0600
committerBrian Bowman <seeker14491@gmail.com>2016-03-04 01:09:23 -0600
commit84e6e04d83d02e09e8b659267e415ec8b5bc2a24 (patch)
tree8f72e97cf4aad0da9841334cbfc410faea29446d /src/libcore
parent8e261d12e3fcd6700b368d449ada4d10ebbf17f8 (diff)
downloadrust-84e6e04d83d02e09e8b659267e415ec8b5bc2a24.tar.gz
rust-84e6e04d83d02e09e8b659267e415ec8b5bc2a24.zip
Clarify ambiguous wording in fold() docs
To me it was unclear whether 'it' referred to the fold function, or the closure.
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/iter.rs2
1 files changed, 1 insertions, 1 deletions
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 @@ 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