Rollup merge of #104109 - yancyribbens:add-mutable-to-comment-for-align-to-mut, r=thomcc

rustdoc: Add mutable to the description

`mutable` is missing from the description.  Currently the description for [align_to](https://github.com/rust-lang/rust/blob/master/library/core/src/slice/mod.rs#L3498) is the same as [align_to_mut](https://github.com/rust-lang/rust/blob/master/library/core/src/slice/mod.rs#L3559)
This commit is contained in:
Guillaume Gomez 2022-11-08 20:40:51 +01:00 committed by GitHub
commit c39cf7acaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3524,8 +3524,8 @@ impl<T> [T] {
}
}
/// Transmute the slice to a slice of another type, ensuring alignment of the types is
/// maintained.
/// Transmute the mutable slice to a mutable slice of another type, ensuring alignment of the
/// types is maintained.
///
/// This method splits the slice into three distinct slices: prefix, correctly aligned middle
/// slice of a new type, and the suffix slice. The method may make the middle slice the greatest