Skip to content

Commit 171c8d3

Browse files
Fix typos.
1 parent 458ac49 commit 171c8d3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/include/llvm/ADT/DenseMap.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -710,10 +710,10 @@ class DenseMap : public DenseMapBase<DenseMap<KeyT, ValueT, KeyInfoT, BucketT>,
710710
unsigned NumBuckets;
711711

712712
public:
713-
/// Create a DenseMap with an optional \p NumElementsToReservre to guarantee
713+
/// Create a DenseMap with an optional \p NumElementsToReserve to guarantee
714714
/// that this number of elements can be inserted in the map without grow().
715-
explicit DenseMap(unsigned NumElementsToReservre = 0) {
716-
init(NumElementsToReservre);
715+
explicit DenseMap(unsigned NumElementsToReserve = 0) {
716+
init(NumElementsToReserve);
717717
}
718718

719719
DenseMap(const DenseMap &other) : BaseT() {
@@ -889,8 +889,8 @@ class SmallDenseMap
889889
AlignedCharArrayUnion<BucketT[InlineBuckets], LargeRep> storage;
890890

891891
public:
892-
explicit SmallDenseMap(unsigned NumElementsToReservre = 0) {
893-
init(NumElementsToReservre);
892+
explicit SmallDenseMap(unsigned NumElementsToReserve = 0) {
893+
init(NumElementsToReserve);
894894
}
895895

896896
SmallDenseMap(const SmallDenseMap &other) : BaseT() {

0 commit comments

Comments
 (0)