From f4ffdbfaad2b241bb3dc1db7f6b31ec7c1e1da41 Mon Sep 17 00:00:00 2001 From: yancy Date: Mon, 7 Nov 2022 17:11:41 +0100 Subject: [PATCH] rustdoc: Add copy to the description of repeat --- library/alloc/src/slice.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/alloc/src/slice.rs b/library/alloc/src/slice.rs index a5e7bf2a1a9f3..1b61ede3476c3 100644 --- a/library/alloc/src/slice.rs +++ b/library/alloc/src/slice.rs @@ -458,7 +458,7 @@ impl [T] { hack::into_vec(self) } - /// Creates a vector by repeating a slice `n` times. + /// Creates a vector by copying a slice `n` times. /// /// # Panics ///