Skip to content

Commit 6a40169

Browse files
make clone_from_slice consistent with copy_from_slice
What 'this slice' refers to is not intuitive (we're in the docs for Vec).
1 parent bb4a79b commit 6a40169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ impl<T> [T] {
848848

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

0 commit comments

Comments
 (0)