diff options
| author | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2015-05-24 22:55:34 +0200 |
|---|---|---|
| committer | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2015-05-24 22:55:34 +0200 |
| commit | 02b951f66cd8f534335daff1c6c229dddafa1926 (patch) | |
| tree | 1de60fcab3b23c0b36a7ea1e598b84247bb2bb19 /src | |
| parent | ba0e1cd8147d452c356aacb29fb87568ca26f111 (diff) | |
| download | rust-02b951f66cd8f534335daff1c6c229dddafa1926.tar.gz rust-02b951f66cd8f534335daff1c6c229dddafa1926.zip | |
doc: cloned() and mut not needed
Diffstat (limited to 'src')
| -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 ed7cdbbb6e2..20f326137e1 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -1057,7 +1057,7 @@ pub trait Iterator { /// # #![feature(core)] /// /// let a = [1, 2, 3, 4, 5]; - /// let mut it = a.iter().cloned(); + /// let it = a.iter(); /// assert_eq!(it.sum::<i32>(), 15); /// ``` #[unstable(feature="core")] |
