Skip to content

Commit

Permalink
Rollup merge of rust-lang#91524 - rukai:fix_extend_from_slice_docs, r…
Browse files Browse the repository at this point in the history
…=dtolnay

Fix Vec::extend_from_slice docs

`other` is a slice not a vector.
  • Loading branch information
matthiaskrgr authored Dec 10, 2021
2 parents f510acc + 8bfc76d commit f758c82
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 @@ -2199,7 +2199,7 @@ impl<T: Clone, A: Allocator> Vec<T, A> {
/// Clones and appends all elements in a slice to the `Vec`.
///
/// Iterates over the slice `other`, clones each element, and then appends
/// it to this `Vec`. The `other` vector is traversed in-order.
/// it to this `Vec`. The `other` slice is traversed in-order.
///
/// Note that this function is same as [`extend`] except that it is
/// specialized to work with slices instead. If and when Rust gets
Expand Down

0 comments on commit f758c82

Please sign in to comment.