Skip to content

Commit c121e34

Browse files
committed
as_simd: fix comment to be in line with 507583a (rust-lang#121201)
1 parent 28cc0b6 commit c121e34

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

library/core/src/slice/mod.rs

+2-11
Original file line numberDiff line numberDiff line change
@@ -3959,17 +3959,8 @@ impl<T> [T] {
39593959

39603960
/// Split a slice into a prefix, a middle of aligned SIMD types, and a suffix.
39613961
///
3962-
/// This is a safe wrapper around [`slice::align_to`], so has the same weak
3963-
/// postconditions as that method. You're only assured that
3964-
/// `self.len() == prefix.len() + middle.len() * LANES + suffix.len()`.
3965-
///
3966-
/// Notably, all of the following are possible:
3967-
/// - `prefix.len() >= LANES`.
3968-
/// - `middle.is_empty()` despite `self.len() >= 3 * LANES`.
3969-
/// - `suffix.len() >= LANES`.
3970-
///
3971-
/// That said, this is a safe method, so if you're only writing safe code,
3972-
/// then this can at most cause incorrect logic, not unsoundness.
3962+
/// This is a safe wrapper around [`slice::align_to`], so inherits the same
3963+
/// guarantees as that method.
39733964
///
39743965
/// # Panics
39753966
///

0 commit comments

Comments
 (0)