Skip to content

Commit 02b951f

Browse files
committed
doc: cloned() and mut not needed
1 parent ba0e1cd commit 02b951f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ pub trait Iterator {
10571057
/// # #![feature(core)]
10581058
///
10591059
/// let a = [1, 2, 3, 4, 5];
1060-
/// let mut it = a.iter().cloned();
1060+
/// let it = a.iter();
10611061
/// assert_eq!(it.sum::<i32>(), 15);
10621062
/// ```
10631063
#[unstable(feature="core")]

0 commit comments

Comments
 (0)