Skip to content

Commit 0f3ca38

Browse files
authored
Merge pull request #17 from Qix-/Qix--patch-1
Fix docs for Heap::init()
2 parents 72c01c5 + e7c448a commit 0f3ca38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ impl<const ORDER: usize> Heap<ORDER> {
9494
self.total += total;
9595
}
9696

97-
/// Add a range of memory [start, end) to the heap
97+
/// Add a range of memory [start, start+size) to the heap
9898
pub unsafe fn init(&mut self, start: usize, size: usize) {
9999
self.add_to_heap(start, start + size);
100100
}

0 commit comments

Comments
 (0)