From 6a4016933e707019f637d9bf0e274bf45bd0cc13 Mon Sep 17 00:00:00 2001 From: Alexander Merritt Date: Sat, 9 Jul 2016 21:43:47 -0400 Subject: [PATCH] make clone_from_slice consistent with copy_from_slice What 'this slice' refers to is not intuitive (we're in the docs for Vec). --- src/libcollections/slice.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcollections/slice.rs b/src/libcollections/slice.rs index cef8a33703b..943a14d83d0 100644 --- a/src/libcollections/slice.rs +++ b/src/libcollections/slice.rs @@ -848,7 +848,7 @@ impl [T] { /// Copies the elements from `src` into `self`. /// - /// The length of this slice must be the same as the slice passed in. + /// The length of `src` must be the same as `self`. /// /// # Panics ///