make clone_from_slice consistent with copy_from_slice

What 'this slice' refers to is not intuitive (we're in the docs for Vec).
This commit is contained in:
Alexander Merritt 2016-07-09 21:43:47 -04:00
parent bb4a79b087
commit 6a4016933e
1 changed files with 1 additions and 1 deletions

View File

@ -848,7 +848,7 @@ impl<T> [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
///