Skip to content

Commit

Permalink
readme and some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jdonszelmann committed Jun 10, 2023
1 parent 72ccd2a commit db03cf8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ compared here can grow unbounded (though in benchmarks they weren't filled over

# Features

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

# License

Expand Down
1 change: 1 addition & 0 deletions src/with_alloc/alloc_ringbuffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ unsafe impl<T, SIZE: RingbufferSize> RingBuffer<T> for AllocRingBuffer<T, SIZE>

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

self.readptr = 0;
Expand Down

1 comment on commit db03cf8

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.