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 3, 2022
1 parent 10492c6 commit 1683ea4
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.
///
/// Allocated bytes does not include the sizes of bumpalo chunk headers.
/// So the amount of memory requested from rust allocator is higher
/// than the returned value.
///
/// ## Example
///
/// ```
Expand Down

0 comments on commit 1683ea4

Please sign in to comment.