Skip to content

Commit

Permalink
style: avoid passive voice
Browse files Browse the repository at this point in the history
  • Loading branch information
morrisonlevi committed Jun 24, 2024
1 parent edd2dfc commit c45e080
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/raw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,10 @@ fn capacity_to_buckets(cap: usize, table_layout: TableLayout) -> Option<usize> {
_ => 3,
});

// For small tables we require at least 1 empty bucket so that lookups are
// For small tables, require at least 1 empty bucket so that lookups are
// guaranteed to terminate if an element doesn't exist in the table.
if cap < 8 {
// We don't bother with a table size of 2 buckets since that can only
// Don't bother with a table size of 2 buckets since that can only
// hold a single element. Instead, skip directly to a 4 bucket table
// which can hold 3 elements.
return Some(if cap < 4 { 4 } else { 8 });
Expand Down

0 comments on commit c45e080

Please sign in to comment.