Skip to content

Commit a29dc05

Browse files
committed
Document panic behaviour of BitVec::split_off
1 parent 05d5fca commit a29dc05

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libcollections/bit.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,10 @@ impl BitVec {
644644
/// Splits the `BitVec` into two at the given bit,
645645
/// retaining the first half in-place and returning the second one.
646646
///
647+
/// # Panics
648+
///
649+
/// Panics if `at` is out of bounds.
650+
///
647651
/// # Examples
648652
///
649653
/// ```

0 commit comments

Comments
 (0)