Skip to content

Commit 134b064

Browse files
committed
fix: remove Panics section that no longer applies
1 parent 783f6dd commit 134b064

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/ringbuffer_trait.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,6 @@ pub unsafe trait RingBuffer<T>:
339339

340340
/// Efficiently drain the ringbuffer, transferring items to a slice.
341341
///
342-
/// # Panics
343-
/// Panics if the `dst.len()` is greater than the buffer length.
344-
///
345342
/// # Safety
346343
/// ONLY SAFE WHEN self is a *mut to to an implementor of `RingBuffer`
347344
unsafe fn ptr_drain_to_slice(rb: *mut Self, dst: &mut [T])
@@ -350,9 +347,6 @@ pub unsafe trait RingBuffer<T>:
350347

351348
/// Efficiently drain the ringbuffer, transferring items to a slice.
352349
///
353-
/// # Panics
354-
/// Panics if the `dst.len()` is greater than the buffer length.
355-
///
356350
/// # Examples
357351
///
358352
/// ```

0 commit comments

Comments
 (0)