Skip to content

Commit 3336c6c

Browse files
[ADT] Fix comment typos in DenseMap.h (#158457)
- The math is wrong. - We are discussing "inequality". - "For example" requires ",".
1 parent 24f836a commit 3336c6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/ADT/DenseMap.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,8 @@ class DenseMapBase : public DebugEpochBase {
372372
// Ensure that "NumEntries * 4 < NumBuckets * 3"
373373
if (NumEntries == 0)
374374
return 0;
375-
// +1 is required because of the strict equality.
376-
// For example if NumEntries is 48, we need to return 401.
375+
// +1 is required because of the strict inequality.
376+
// For example, if NumEntries is 48, we need to return 128.
377377
return NextPowerOf2(NumEntries * 4 / 3 + 1);
378378
}
379379

0 commit comments

Comments
 (0)