about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2016-03-04 14:17:29 -0500
committerSteve Klabnik <steve@steveklabnik.com>2016-03-04 14:17:29 -0500
commitd5aeb769e998ed40a0dc935a0648f9bf1bd4292e (patch)
treeadb7263ff3d63ea3664be68138eb7f5c44f3e413 /src/libcore
parentb99354f07f4533ffdea3613e8271b741ffcfd7e1 (diff)
parent84e6e04d83d02e09e8b659267e415ec8b5bc2a24 (diff)
downloadrust-d5aeb769e998ed40a0dc935a0648f9bf1bd4292e.tar.gz
rust-d5aeb769e998ed40a0dc935a0648f9bf1bd4292e.zip
Rollup merge of #32036 - Seeker14491:patch-1, r=steveklabnik
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