mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 14:52:56 +03:00
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:
+1
-1
@@ -92,7 +92,7 @@
|
||||
/// 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);
|
||||
|
||||
Reference in New Issue
Block a user