Auto merge of #34745 - alexandermerritt:slice-doc, r=brson
make docs for clone_from_slice consistent with copy_from_slice What 'this slice' refers to is not intuitive, given this method can appear in other places, e.g. in docs for Vec.
This commit is contained in:
commit
c73bb9b7d9
@ -847,7 +847,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…
x
Reference in New Issue
Block a user