Rollup merge of #67180 - NieDzejkob:vec-doc-copied, r=Dylan-DPC

doc: Use .copied() instead of .cloned() in Vec example

None
This commit is contained in:
Yuki Okushi 2019-12-11 04:33:05 +09:00 committed by GitHub
commit 729c31b312
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);