Skip to content

Commit 8a956e4

Browse files
authored
Clarify docs for split_at_mut
The `&mut` here didn't make immediate sense to me. Keep the docs for this function consistent with the non-mut version.
1 parent 250b492 commit 8a956e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/slice.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ impl<T> [T] {
699699
core_slice::SliceExt::split_at(self, mid)
700700
}
701701

702-
/// Divides one `&mut` into two at an index.
702+
/// Divides one mutable slice into two at an index.
703703
///
704704
/// The first will contain all indices from `[0, mid)` (excluding
705705
/// the index `mid` itself) and the second will contain all

0 commit comments

Comments
 (0)