Skip to content

Commit c45e080

Browse files
committed
style: avoid passive voice
1 parent edd2dfc commit c45e080

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/raw/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,10 @@ fn capacity_to_buckets(cap: usize, table_layout: TableLayout) -> Option<usize> {
220220
_ => 3,
221221
});
222222

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

0 commit comments

Comments
 (0)