Skip to content

Commit

Permalink
Rollup merge of #104111 - yancyribbens:add-mutable-to-the-description…
Browse files Browse the repository at this point in the history
…-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 83f8d18 + f67ee43 commit 36d5c6c
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 36d5c6c

Please sign in to comment.