@@ -3756,11 +3756,8 @@ impl<T> [T] {
37563756 /// maintained.
37573757 ///
37583758 /// This method splits the slice into three distinct slices: prefix, correctly aligned middle
3759- /// slice of a new type, and the suffix slice. How exactly the slice is split up is not
3760- /// specified; the middle part may be smaller than necessary. However, if this fails to return a
3761- /// maximal middle part, that is because code is running in a context where performance does not
3762- /// matter, such as a sanitizer attempting to find alignment bugs. Regular code running
3763- /// in a default (debug or release) execution *will* return a maximal middle part.
3759+ /// slice of a new type, and the suffix slice. The middle part will be as big as possible under
3760+ /// the given alignment constraint and element size.
37643761 ///
37653762 /// This method has no purpose when either input element `T` or output element `U` are
37663763 /// zero-sized and will return the original slice without splitting anything.
@@ -3824,11 +3821,8 @@ impl<T> [T] {
38243821 /// types is maintained.
38253822 ///
38263823 /// This method splits the slice into three distinct slices: prefix, correctly aligned middle
3827- /// slice of a new type, and the suffix slice. How exactly the slice is split up is not
3828- /// specified; the middle part may be smaller than necessary. However, if this fails to return a
3829- /// maximal middle part, that is because code is running in a context where performance does not
3830- /// matter, such as a sanitizer attempting to find alignment bugs. Regular code running
3831- /// in a default (debug or release) execution *will* return a maximal middle part.
3824+ /// slice of a new type, and the suffix slice. The middle part will be as big as possible under
3825+ /// the given alignment constraint and element size.
38323826 ///
38333827 /// This method has no purpose when either input element `T` or output element `U` are
38343828 /// zero-sized and will return the original slice without splitting anything.
0 commit comments