Update the documentation of Vec
to use extend(array)
instead of extend(array.iter().copied())
This commit is contained in:
parent
b38a6d373c
commit
4df5459dd1
@ -166,7 +166,7 @@
|
||||
/// 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}");
|
||||
|
Loading…
Reference in New Issue
Block a user