Skip to content

Commit

Permalink
Rollup merge of rust-lang#67180 - NieDzejkob:vec-doc-copied, r=Dylan-DPC
Browse files Browse the repository at this point in the history
doc: Use .copied() instead of .cloned() in Vec example

None
  • Loading branch information
JohnTitor authored Dec 10, 2019
2 parents 5a2af97 + ecd9307 commit 729c31b
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 729c31b

Please sign in to comment.