Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use buddy_system_allocator::LockedHeap;
static HEAP_ALLOCATOR: LockedHeap<32> = LockedHeap::empty();
```

To init the allocator:
To initialize the allocator:

```rust
unsafe {
Expand All @@ -41,7 +41,7 @@ You can also use `FrameAllocator` and `LockedHeapWithRescue`, see their document

Some code comes from phil-opp's linked-list-allocator.

Licensed under MIT License. Thanks phill-opp's linked-list-allocator for inspirations and interface.
Licensed under the MIT License. Thanks to phil-opp's linked-list-allocator for the inspiration and interface.

[crate-img]: https://img.shields.io/crates/v/buddy_system_allocator.svg
[crate]: https://crates.io/crates/buddy_system_allocator
Expand Down
2 changes: 1 addition & 1 deletion src/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ pub struct LockedFrameAllocator<const ORDER: usize = 33>(Mutex<FrameAllocator<OR

#[cfg(feature = "use_spin")]
impl<const ORDER: usize> LockedFrameAllocator<ORDER> {
/// Creates an empty heap
/// Creates an empty frame allocator.
pub const fn new() -> Self {
Self(Mutex::new(FrameAllocator::new()))
}
Expand Down
Loading