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 8, 2022
1 parent 10492c6 commit 4dc20fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
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 sizes of bumpalo chunk headers,
/// so the amount of memory requested from the Rust allocator is higher
/// than the returned value.
///
/// ## Example
///
/// ```
Expand Down

0 comments on commit 4dc20fa

Please sign in to comment.