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:
parent
bb4a79b087
commit
6a4016933e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue