diff --git a/src/libcollections/bit.rs b/src/libcollections/bit.rs index 1271a6276ae..17e937c5af2 100644 --- a/src/libcollections/bit.rs +++ b/src/libcollections/bit.rs @@ -644,6 +644,10 @@ impl BitVec { /// Splits the `BitVec` into two at the given bit, /// retaining the first half in-place and returning the second one. /// + /// # Panics + /// + /// Panics if `at` is out of bounds. + /// /// # Examples /// /// ```