]> git.lizzy.rs Git - rust.git/commitdiff
Format panic docs for split_at
authorSteve Klabnik <steve@steveklabnik.com>
Wed, 30 Sep 2015 16:42:47 +0000 (12:42 -0400)
committerSteve Klabnik <steve@steveklabnik.com>
Wed, 30 Sep 2015 16:42:47 +0000 (12:42 -0400)
Fixes #28384

src/libcollections/slice.rs

index 76bdd6dbea1221a69da5864a649ebb97f8233b20..dabfd168c89ac3557dffed06fe20a3352efe048b 100644 (file)
@@ -455,6 +455,8 @@ pub fn chunks_mut(&mut self, chunk_size: usize) -> ChunksMut<T> {
     /// 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