mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Diagnostics] NFC: Fix a typo in a method name: wrapedTypes -> wrappedTypes
This commit is contained in:
@@ -7467,7 +7467,7 @@ SourceRange CheckedCastBaseFailure::getCastRange() const {
|
||||
}
|
||||
|
||||
std::tuple<Type, Type, unsigned>
|
||||
CoercibleOptionalCheckedCastFailure::unwrapedTypes() const {
|
||||
CoercibleOptionalCheckedCastFailure::unwrappedTypes() const {
|
||||
SmallVector<Type, 4> fromOptionals;
|
||||
SmallVector<Type, 4> toOptionals;
|
||||
Type unwrappedFromType =
|
||||
@@ -7484,7 +7484,7 @@ bool CoercibleOptionalCheckedCastFailure::diagnoseIfExpr() const {
|
||||
|
||||
Type unwrappedFrom, unwrappedTo;
|
||||
unsigned extraFromOptionals;
|
||||
std::tie(unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrapedTypes();
|
||||
std::tie(unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrappedTypes();
|
||||
|
||||
SourceRange diagFromRange = getFromRange();
|
||||
SourceRange diagToRange = getToRange();
|
||||
@@ -7516,7 +7516,7 @@ bool CoercibleOptionalCheckedCastFailure::diagnoseForcedCastExpr() const {
|
||||
auto toType = getToType();
|
||||
Type unwrappedFrom, unwrappedTo;
|
||||
unsigned extraFromOptionals;
|
||||
std::tie(unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrapedTypes();
|
||||
std::tie(unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrappedTypes();
|
||||
|
||||
SourceRange diagFromRange = getFromRange();
|
||||
SourceRange diagToRange = getToRange();
|
||||
@@ -7559,7 +7559,7 @@ bool CoercibleOptionalCheckedCastFailure::diagnoseConditionalCastExpr() const {
|
||||
auto toType = getToType();
|
||||
Type unwrappedFrom, unwrappedTo;
|
||||
unsigned extraFromOptionals;
|
||||
std::tie(unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrapedTypes();
|
||||
std::tie(unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrappedTypes();
|
||||
|
||||
SourceRange diagFromRange = getFromRange();
|
||||
SourceRange diagToRange = getToRange();
|
||||
|
||||
Reference in New Issue
Block a user