Skip to content

Commit

Permalink
Update the comment about wasteful blocks to match the current definit…
Browse files Browse the repository at this point in the history
…ion.

PiperOrigin-RevId: 641816342
  • Loading branch information
QrczakMK committed Jun 10, 2024
1 parent f8ea4cd commit e530e7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions riegeli/base/chain.h
Original file line number Diff line number Diff line change
Expand Up @@ -918,8 +918,7 @@ Chain ChainOfZeros(size_t length);
// Definitions:
// - empty block: a block with size == 0
// - tiny block: a block with size < `kDefaultMinBlockSize`
// - wasteful block: a block with free space >
// max(size, `kDefaultMinBlockSize`)
// - wasteful block: a block with free space > size + `kDefaultMinBlockSize`
//
// Invariants of a `Chain`:
// - A block can be empty or wasteful only if it is the first or last block.
Expand Down

0 comments on commit e530e7f

Please sign in to comment.