Skip to content

Commit c73bb9b

Browse files
authored
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.
2 parents 4d50e47 + 6a40169 commit c73bb9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/slice.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ impl<T> [T] {
847847

848848
/// Copies the elements from `src` into `self`.
849849
///
850-
/// The length of this slice must be the same as the slice passed in.
850+
/// The length of `src` must be the same as `self`.
851851
///
852852
/// # Panics
853853
///

0 commit comments

Comments
 (0)