Skip to content

Commit 4f1f0dc

Browse files
bors[bot]xkr47
andauthored
Merge #60
60: Fix init() rustdoc to match actual arguments r=adamgreig a=xkr47 Co-authored-by: Jonas Berlin <github@outerspace.dyndns.org>
2 parents 89cb8d5 + b8e5b48 commit 4f1f0dc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ impl Heap {
3434
///
3535
/// Note that:
3636
///
37-
/// - The heap grows "upwards", towards larger addresses. Thus `end_addr` must
38-
/// be larger than `start_addr`
37+
/// - The heap grows "upwards", towards larger addresses. Thus `start_addr` will
38+
/// be the smallest address used.
3939
///
40-
/// - The size of the heap is `(end_addr as usize) - (start_addr as usize)`. The
41-
/// allocator won't use the byte at `end_addr`.
40+
/// - The largest address used is `start_addr + size - 1`, so if `start_addr` is
41+
/// `0x1000` and `size` is `0x30000` then the allocator won't use memory at
42+
/// addresses `0x31000` and larger.
4243
///
4344
/// # Safety
4445
///

0 commit comments

Comments
 (0)