diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-09 00:02:37 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-09 00:02:37 +0530 |
| commit | 0e0bb8a128baee4ec074b6d82bdd73b48a4b8283 (patch) | |
| tree | 14f614e6b52dc7ad80824fa1ec691b007b0bd439 /src/libcore/iter.rs | |
| parent | 509c6fc9c172fefaeeabb815a4b8feac6e0d075d (diff) | |
| parent | 45c397d738ac9cbf3d0ea2233142023ca148c893 (diff) | |
Rollup merge of #23179 - steveklabnik:mini_rollup, r=steveklabnik
I had to fix up some PRs: * https://github.com/rust-lang/rust/pull/22976 * https://github.com/rust-lang/rust/pull/22945 * https://github.com/rust-lang/rust/pull/22845
Diffstat (limited to 'src/libcore/iter.rs')
| -rw-r--r-- | src/libcore/iter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index 32225b90f6b..d5e891a156e 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -611,7 +611,7 @@ pub trait IteratorExt: Iterator + Sized { /// /// ``` /// let a = [1, 2, 3, 4, 5]; - /// assert!(a.iter().fold(0, |a, &b| a + b) == 15); + /// assert!(a.iter().fold(0, |acc, &item| acc + item) == 15); /// ``` #[inline] #[stable(feature = "rust1", since = "1.0.0")] |
