@@ -3756,11 +3756,8 @@ impl<T> [T] {
|
3756 | 3756 | /// maintained. |
3757 | 3757 | /// |
3758 | 3758 | /// 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. |
3764 | 3761 | /// |
3765 | 3762 | /// This method has no purpose when either input element `T` or output element `U` are |
3766 | 3763 | /// zero-sized and will return the original slice without splitting anything. |
@@ -3824,11 +3821,8 @@ impl<T> [T] {
|
3824 | 3821 | /// types is maintained. |
3825 | 3822 | /// |
3826 | 3823 | /// 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. |
3832 | 3826 | /// |
3833 | 3827 | /// This method has no purpose when either input element `T` or output element `U` are |
3834 | 3828 | /// zero-sized and will return the original slice without splitting anything. |
|