From a29dc05c932bda1b88f1afc6a92d6c3f72790b88 Mon Sep 17 00:00:00 2001 From: Johannes Oertel Date: Sat, 9 May 2015 00:41:38 +0200 Subject: [PATCH] Document panic behaviour of BitVec::split_off --- src/libcollections/bit.rs | 4 ++++ 1 file changed, 4 insertions(+) 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 /// /// ```