Skip to content

Commit

Permalink
Rollup merge of #104109 - yancyribbens:add-mutable-to-comment-for-ali…
Browse files Browse the repository at this point in the history
…gn-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)
  • Loading branch information
GuillaumeGomez authored Nov 8, 2022
2 parents 92f1c6f + d62582f commit c39cf7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/slice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c39cf7a

Please sign in to comment.