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 d093670 commit d00fcaaCopy full SHA for d00fcaa
src/raw/mod.rs
@@ -219,10 +219,10 @@ fn capacity_to_buckets(cap: usize, table_layout: TableLayout) -> Option<usize> {
219
_ => 3,
220
});
221
222
- // 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
223
// guaranteed to terminate if an element doesn't exist in the table.
224
if cap < 8 {
225
- // 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
226
// hold a single element. Instead, skip directly to a 4 bucket table
227
// which can hold 3 elements.
228
return Some(if cap < 4 { 4 } else { 8 });
0 commit comments