about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorTshepang Lekhonkhobe <tshepang@gmail.com>2015-05-24 22:55:34 +0200
committerTshepang Lekhonkhobe <tshepang@gmail.com>2015-05-24 22:55:34 +0200
commit02b951f66cd8f534335daff1c6c229dddafa1926 (patch)
tree1de60fcab3b23c0b36a7ea1e598b84247bb2bb19 /src
parentba0e1cd8147d452c356aacb29fb87568ca26f111 (diff)
downloadrust-02b951f66cd8f534335daff1c6c229dddafa1926.tar.gz
rust-02b951f66cd8f534335daff1c6c229dddafa1926.zip
doc: cloned() and mut not needed
Diffstat (limited to 'src')
-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 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")]