mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-07-20 22:57:39 -04:00
Update the documentation of Vec to use extend(array) instead of extend(array.iter().copied())
This commit is contained in:
committed by
GitHub
parent
b38a6d373c
commit
4df5459dd1
@@ -166,7 +166,7 @@ mod spec_extend;
|
||||
/// vec[0] = 7;
|
||||
/// assert_eq!(vec[0], 7);
|
||||
///
|
||||
/// vec.extend([1, 2, 3].iter().copied());
|
||||
/// vec.extend([1, 2, 3]);
|
||||
///
|
||||
/// for x in &vec {
|
||||
/// println!("{x}");
|
||||
|
||||
Reference in New Issue
Block a user