]> git.lizzy.rs Git - rust.git/blobdiff - library/alloc/src/slice.rs
Rollup merge of #105842 - compiler-errors:arg-name-sugg, r=petrochenkov
[rust.git] / library / alloc / src / slice.rs
index a5e7bf2a1a9f34ef3adfed7023bbaa6dece57585..1b61ede3476c336c3112867a32253dc86ee219ea 100644 (file)
@@ -458,7 +458,7 @@ pub fn into_vec<A: Allocator>(self: Box<Self, A>) -> Vec<T, A> {
         hack::into_vec(self)
     }
 
-    /// Creates a vector by repeating a slice `n` times.
+    /// Creates a vector by copying a slice `n` times.
     ///
     /// # Panics
     ///