Skip to content

Commit db03cf8

Browse files
committed
readme and some comments
1 parent 72ccd2a commit db03cf8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ compared here can grow unbounded (though in benchmarks they weren't filled over
8888

8989
# Features
9090

91-
| name | default | description |
92-
|-------|---------|--------------------------------------------------------------------------------------------------------------|
93-
| alloc || Disable this feature to remove the dependency on alloc. Disabling this feature makes `ringbuffer` `no_std`. |
91+
| name | default | description |
92+
|-------|---------|------------------------------------------------------------------------------------------------------------|
93+
| alloc || Disable this feature to remove the dependency on alloc. |
9494

9595
# License
9696

src/with_alloc/alloc_ringbuffer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ unsafe impl<T, SIZE: RingbufferSize> RingBuffer<T> for AllocRingBuffer<T, SIZE>
324324

325325
#[inline]
326326
fn fill_with<F: FnMut() -> T>(&mut self, mut f: F) {
327+
// This clear is necessary so that the drop methods are called.
327328
self.clear();
328329

329330
self.readptr = 0;

0 commit comments

Comments
 (0)