We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edd2dfc commit c45e080Copy full SHA for c45e080
src/raw/mod.rs
@@ -220,10 +220,10 @@ fn capacity_to_buckets(cap: usize, table_layout: TableLayout) -> Option<usize> {
220
_ => 3,
221
});
222
223
- // 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
224
// guaranteed to terminate if an element doesn't exist in the table.
225
if cap < 8 {
226
- // 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
227
// hold a single element. Instead, skip directly to a 4 bucket table
228
// which can hold 3 elements.
229
return Some(if cap < 4 { 4 } else { 8 });
0 commit comments