mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] Adjusting comments for clarity
This commit is contained in:
@@ -6735,7 +6735,7 @@ static ConstraintFix *maybeWarnAboutExtraneousCast(
|
||||
// we need to store the difference as a signed integer.
|
||||
int extraOptionals = fromOptionals.size() - toOptionals.size();
|
||||
|
||||
// From expression could be a type variable with a value to optional
|
||||
// "from" expression could be a type variable with value-to-optional
|
||||
// restrictions that we have to account for optionality mismatch.
|
||||
const auto subExprType = cs.getType(castExpr->getSubExpr());
|
||||
if (llvm::any_of(constraintRestrictions, [&](auto &entry) {
|
||||
|
||||
Reference in New Issue
Block a user