about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-10 22:40:34 +0100
committerGitHub <noreply@github.com>2021-12-10 22:40:34 +0100
commitca352c45222dfc55c478d853b7057fcac1bd39ac (patch)
tree3aaf054c872fbb91cfafdc6b80e00ff466b6e07a /library/alloc/src
parent5510803fe98660d96e9b6b9ba95cc00b8539155f (diff)
parent8bfc76dd6241aa7da0bc6660f0651e17092f8c93 (diff)
downloadrust-ca352c45222dfc55c478d853b7057fcac1bd39ac.tar.gz
rust-ca352c45222dfc55c478d853b7057fcac1bd39ac.zip
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.
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/vec/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs
index f1b70fa2802..408c3cb8577 100644
--- a/library/alloc/src/vec/mod.rs
+++ b/library/alloc/src/vec/mod.rs
@@ -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