Skip to content

Commit c39cf7a

Browse files
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)
2 parents 92f1c6f + d62582f commit c39cf7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/slice/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3524,8 +3524,8 @@ impl<T> [T] {
35243524
}
35253525
}
35263526

3527-
/// Transmute the slice to a slice of another type, ensuring alignment of the types is
3528-
/// maintained.
3527+
/// Transmute the mutable slice to a mutable slice of another type, ensuring alignment of the
3528+
/// types is maintained.
35293529
///
35303530
/// This method splits the slice into three distinct slices: prefix, correctly aligned middle
35313531
/// slice of a new type, and the suffix slice. The method may make the middle slice the greatest

0 commit comments

Comments
 (0)