Skip to content

Commit ca352c4

Browse files
authored
Rollup merge of #91524 - rukai:fix_extend_from_slice_docs, r=dtolnay
Fix Vec::extend_from_slice docs `other` is a slice not a vector.
2 parents 5510803 + 8bfc76d commit ca352c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2199,7 +2199,7 @@ impl<T: Clone, A: Allocator> Vec<T, A> {
21992199
/// Clones and appends all elements in a slice to the `Vec`.
22002200
///
22012201
/// Iterates over the slice `other`, clones each element, and then appends
2202-
/// it to this `Vec`. The `other` vector is traversed in-order.
2202+
/// it to this `Vec`. The `other` slice is traversed in-order.
22032203
///
22042204
/// Note that this function is same as [`extend`] except that it is
22052205
/// specialized to work with slices instead. If and when Rust gets

0 commit comments

Comments
 (0)