Skip to content

Commit 0d50593

Browse files
committed
[Diagnostics] NFC: Fix a typo in a method name: wrapedTypes -> wrappedTypes
1 parent 544c796 commit 0d50593

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/Sema/CSDiagnostics.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7467,7 +7467,7 @@ SourceRange CheckedCastBaseFailure::getCastRange() const {
74677467
}
74687468

74697469
std::tuple<Type, Type, unsigned>
7470-
CoercibleOptionalCheckedCastFailure::unwrapedTypes() const {
7470+
CoercibleOptionalCheckedCastFailure::unwrappedTypes() const {
74717471
SmallVector<Type, 4> fromOptionals;
74727472
SmallVector<Type, 4> toOptionals;
74737473
Type unwrappedFromType =
@@ -7484,7 +7484,7 @@ bool CoercibleOptionalCheckedCastFailure::diagnoseIfExpr() const {
74847484

74857485
Type unwrappedFrom, unwrappedTo;
74867486
unsigned extraFromOptionals;
7487-
std::tie(unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrapedTypes();
7487+
std::tie(unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrappedTypes();
74887488

74897489
SourceRange diagFromRange = getFromRange();
74907490
SourceRange diagToRange = getToRange();
@@ -7516,7 +7516,7 @@ bool CoercibleOptionalCheckedCastFailure::diagnoseForcedCastExpr() const {
75167516
auto toType = getToType();
75177517
Type unwrappedFrom, unwrappedTo;
75187518
unsigned extraFromOptionals;
7519-
std::tie(unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrapedTypes();
7519+
std::tie(unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrappedTypes();
75207520

75217521
SourceRange diagFromRange = getFromRange();
75227522
SourceRange diagToRange = getToRange();
@@ -7559,7 +7559,7 @@ bool CoercibleOptionalCheckedCastFailure::diagnoseConditionalCastExpr() const {
75597559
auto toType = getToType();
75607560
Type unwrappedFrom, unwrappedTo;
75617561
unsigned extraFromOptionals;
7562-
std::tie(unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrapedTypes();
7562+
std::tie(unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrappedTypes();
75637563

75647564
SourceRange diagFromRange = getFromRange();
75657565
SourceRange diagToRange = getToRange();

lib/Sema/CSDiagnostics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2496,7 +2496,7 @@ class CoercibleOptionalCheckedCastFailure final
24962496
bool diagnoseAsError() override;
24972497

24982498
private:
2499-
std::tuple<Type, Type, unsigned> unwrapedTypes() const;
2499+
std::tuple<Type, Type, unsigned> unwrappedTypes() const;
25002500

25012501
bool diagnoseIfExpr() const;
25022502

0 commit comments

Comments
 (0)