Skip to content

Commit

Permalink
Update the documentation of Vec to use extend(array) instead of `…
Browse files Browse the repository at this point in the history
…extend(array.iter().copied())`
  • Loading branch information
ChayimFriedman2 authored Dec 27, 2022
1 parent b38a6d3 commit 4df5459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/src/vec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
Expand Down

0 comments on commit 4df5459

Please sign in to comment.