Skip to content

Commit

Permalink
Clarify allocated_bytes does not include headers
Browse files Browse the repository at this point in the history
  • Loading branch information
stepancheg committed Nov 10, 2022
1 parent 10492c6 commit 5805a29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1678,6 +1678,10 @@ impl Bump {
/// on it only counting the sum of the sizes of the things
/// you've allocated in the arena.
///
/// The allocated bytes do not include the size of bumpalo's metadata,
/// so the amount of memory requested from the Rust allocator is higher
/// than the returned value.
///
/// ## Example
///
/// ```
Expand Down

0 comments on commit 5805a29

Please sign in to comment.