From d310ad95479369c75bfcd4f126f0b6accc1aaee6 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Wed, 30 Sep 2015 12:42:47 -0400 Subject: [PATCH] Format panic docs for split_at Fixes #28384 --- src/libcollections/slice.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libcollections/slice.rs b/src/libcollections/slice.rs index 76bdd6dbea1..dabfd168c89 100644 --- a/src/libcollections/slice.rs +++ b/src/libcollections/slice.rs @@ -455,6 +455,8 @@ pub fn chunks_mut(&mut self, chunk_size: usize) -> ChunksMut { /// the index `mid` itself) and the second will contain all /// indices from `[mid, len)` (excluding the index `len` itself). /// + /// # Panics + /// /// Panics if `mid > len`. /// /// # Examples