@@ -1832,7 +1832,7 @@ impl<T> [T] {
1832
1832
///
1833
1833
/// # Panics
1834
1834
///
1835
- /// Panics if `mid > len`. For non-panicking alternative see
1835
+ /// Panics if `mid > len`. For a non-panicking alternative see
1836
1836
/// [`split_at_checked`](slice::split_at_checked).
1837
1837
///
1838
1838
/// # Examples
@@ -1879,7 +1879,7 @@ impl<T> [T] {
1879
1879
///
1880
1880
/// # Panics
1881
1881
///
1882
- /// Panics if `mid > len`. For non-panicking alternative see
1882
+ /// Panics if `mid > len`. For a non-panicking alternative see
1883
1883
/// [`split_at_mut_checked`](slice::split_at_mut_checked).
1884
1884
///
1885
1885
/// # Examples
@@ -2021,7 +2021,7 @@ impl<T> [T] {
2021
2021
unsafe { ( from_raw_parts_mut ( ptr, mid) , from_raw_parts_mut ( ptr. add ( mid) , len - mid) ) }
2022
2022
}
2023
2023
2024
- /// Divides one slice into two at an index returning `None` if slice is too
2024
+ /// Divides one slice into two at an index returning, `None` if slice is too
2025
2025
/// short.
2026
2026
///
2027
2027
/// The first will contain all indices from `[0, mid)` (excluding
@@ -2072,7 +2072,8 @@ impl<T> [T] {
2072
2072
}
2073
2073
}
2074
2074
2075
- /// Divides one mutable slice into two at an index.
2075
+ /// Divides one mutable slice into two at an index, returning `None` if
2076
+ /// slice is too short.
2076
2077
///
2077
2078
/// The first will contain all indices from `[0, mid)` (excluding
2078
2079
/// the index `mid` itself) and the second will contain all
0 commit comments