Skip to content

Commit 50130b0

Browse files
[NFC] Adjusting a couple of comments for clarity
1 parent 4339017 commit 50130b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3431,10 +3431,10 @@ ConstraintSystem::matchFunctionTypes(FunctionType *func1, FunctionType *func2,
34313431
// let i: Int = 0
34323432
// (fn as (Int, Int) -> Void)(i, i)
34333433
//
3434-
// Since we are not in a function argument application, so simply record
3434+
// Since we are not in a function argument application, simply record
34353435
// a function type mismatch instead of an argument fix.
3436-
// Except for when a closure is a subexpr because missing and extraneous
3437-
// arg fix can properly handle closure diagnostic.
3436+
// Except for when a closure is a subexpr because closure expr parameters
3437+
// syntax can be added or removed by missing/extraneous arguments fix.
34383438
if (loc->isForCoercion() && !isExpr<ClosureExpr>(anchor)) {
34393439
auto *fix = ContextualMismatch::create(*this, func1, func2, loc);
34403440
if (recordFix(fix))

0 commit comments

Comments
 (0)