Skip to content

Commit 1520fff

Browse files
authored
Rollup merge of #89945 - JohnTitor:we-now-specialize-clone-from-slice, r=the8472
Remove a mention to `copy_from_slice` from `clone_from_slice` doc Fixes #84736 I think removing it would be the best but I'm happy to clarify it instead if someone would like.
2 parents eb69090 + 1df185a commit 1520fff

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

library/core/src/slice/mod.rs

-3
Original file line numberDiff line numberDiff line change
@@ -2953,9 +2953,6 @@ impl<T> [T] {
29532953
///
29542954
/// The length of `src` must be the same as `self`.
29552955
///
2956-
/// If `T` implements `Copy`, it can be more performant to use
2957-
/// [`copy_from_slice`].
2958-
///
29592956
/// # Panics
29602957
///
29612958
/// This function will panic if the two slices have different lengths.

0 commit comments

Comments
 (0)