From 8a956e44a86f191224d5c3cd57c884f6a3cc1cb9 Mon Sep 17 00:00:00 2001 From: Luc Street Date: Thu, 21 Dec 2017 15:22:36 -0800 Subject: [PATCH] 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. --- src/liballoc/slice.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liballoc/slice.rs b/src/liballoc/slice.rs index 18bb13d847a..ab574c9f7e7 100644 --- a/src/liballoc/slice.rs +++ b/src/liballoc/slice.rs @@ -699,7 +699,7 @@ pub fn split_at(&self, mid: usize) -> (&[T], &[T]) { core_slice::SliceExt::split_at(self, mid) } - /// Divides one `&mut` into two at an index. + /// Divides one mutable slice into two at an index. /// /// The first will contain all indices from `[0, mid)` (excluding /// the index `mid` itself) and the second will contain all