Skip to content

Commit d00fcaa

Browse files
committed
style: avoid passive voice
1 parent d093670 commit d00fcaa

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
@@ -219,10 +219,10 @@ fn capacity_to_buckets(cap: usize, table_layout: TableLayout) -> Option<usize> {
219219
_ => 3,
220220
});
221221

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

0 commit comments

Comments
 (0)