doc: cloned() and mut not needed
This commit is contained in:
parent
ba0e1cd814
commit
02b951f66c
1 changed files with 1 additions and 1 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue