mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
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:
commit
c39cf7acaa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user