Skip to content

Commit

Permalink
Rollup merge of rust-lang#104111 - yancyribbens:add-mutable-to-the-de…
Browse files Browse the repository at this point in the history
…scription-for-as-simd-mut, r=scottmcm

rustdoc: Add mutable to the description

Add mutable the description to differentiate [as_simd](https://github.com/rust-lang/rust/blob/master/library/core/src/slice/mod.rs#L3654) from [as_simd_mut](https://github.com/rust-lang/rust/blob/master/library/core/src/slice/mod.rs#L3654).
  • Loading branch information
Dylan-DPC authored Nov 9, 2022
2 parents 1d262cd + f67ee43 commit 64e737c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/core/src/slice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3667,7 +3667,8 @@ impl<T> [T] {
unsafe { self.align_to() }
}

/// Split a slice into a prefix, a middle of aligned SIMD types, and a suffix.
/// Split a mutable slice into a mutable prefix, a middle of aligned SIMD types,
/// and a mutable suffix.
///
/// This is a safe wrapper around [`slice::align_to_mut`], so has the same weak
/// postconditions as that method. You're only assured that
Expand Down

0 comments on commit 64e737c

Please sign in to comment.