Skip to content

Commit

Permalink
Rollup merge of #89945 - JohnTitor:we-now-specialize-clone-from-slice…
Browse files Browse the repository at this point in the history
…, 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.
  • Loading branch information
matthiaskrgr authored Oct 17, 2021
2 parents eb69090 + 1df185a commit 1520fff
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions library/core/src/slice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2953,9 +2953,6 @@ impl<T> [T] {
///
/// The length of `src` must be the same as `self`.
///
/// If `T` implements `Copy`, it can be more performant to use
/// [`copy_from_slice`].
///
/// # Panics
///
/// This function will panic if the two slices have different lengths.
Expand Down

0 comments on commit 1520fff

Please sign in to comment.