mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
doc: cloned() and mut not needed
This commit is contained in:
+1
-1
@@ -1057,7 +1057,7 @@ fn reverse_in_place<'a, T: 'a>(&mut self) where
|
||||
/// # #![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")]
|
||||
|
||||
Reference in New Issue
Block a user