diff --git a/src/libcollections/slice.rs b/src/libcollections/slice.rs index 76bdd6dbea122..dabfd168c89ac 100644 --- a/src/libcollections/slice.rs +++ b/src/libcollections/slice.rs @@ -455,6 +455,8 @@ impl [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