Skip to content

Commit

Permalink
doc: Use .copied() instead of .cloned() in Vec example
Browse files Browse the repository at this point in the history
  • Loading branch information
meithecatte committed Dec 9, 2019
1 parent 7de9402 commit ecd9307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liballoc/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ use crate::raw_vec::RawVec;
/// vec[0] = 7;
/// assert_eq!(vec[0], 7);
///
/// vec.extend([1, 2, 3].iter().cloned());
/// vec.extend([1, 2, 3].iter().copied());
///
/// for x in &vec {
/// println!("{}", x);
Expand Down

0 comments on commit ecd9307

Please sign in to comment.