From d00fcaab04c1009e0d3eee21dedfbba4af61e6bc Mon Sep 17 00:00:00 2001 From: Levi Morrison Date: Mon, 24 Jun 2024 12:03:15 -0600 Subject: [PATCH] style: avoid passive voice --- src/raw/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raw/mod.rs b/src/raw/mod.rs index cbc76c33e..dff531941 100644 --- a/src/raw/mod.rs +++ b/src/raw/mod.rs @@ -219,10 +219,10 @@ fn capacity_to_buckets(cap: usize, table_layout: TableLayout) -> Option { _ => 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 });