@@ -1538,11 +1538,11 @@ static bool closureHasWeakSelfCapture(const AbstractClosureExpr *ACE) {
1538
1538
return false ;
1539
1539
}
1540
1540
1541
- // / Whether or not impliciy self decls in this closure require manual
1541
+ // / Whether or not implicit self decls in this closure require manual
1542
1542
// / lookup in order to perform diagnostics with the semantics described
1543
1543
// / in SE-0365. This is necessary for closures that capture self weakly
1544
1544
// / in Swift 5 language modes, since implicit self decls in weak self
1545
- // // closures has different semantics in Swift 5 than in Swift 6.
1545
+ // / closures have different semantics in Swift 5 than in Swift 6.
1546
1546
static bool
1547
1547
closureRequiresManualLookupForImplicitSelf (const AbstractClosureExpr *ACE) {
1548
1548
if (ACE->getASTContext ().LangOpts .isSwiftVersionAtLeast (6 )) {
@@ -1689,7 +1689,7 @@ static void diagnoseImplicitSelfUseInClosure(const Expr *E,
1689
1689
// doVoidStuff { [weak self] in
1690
1690
// guard let self else { return }
1691
1691
// method()
1692
- // }
1692
+ // }
1693
1693
//
1694
1694
// In Swift 6, the implicit self DRE refers to the self decl
1695
1695
// defined in the guard statement. In Swift 5 mode, the implicit
@@ -2746,7 +2746,7 @@ class VarDeclUsageChecker : public ASTWalker {
2746
2746
// doVoidStuff { [weak self] in
2747
2747
// guard let self else { return }
2748
2748
// method()
2749
- // }
2749
+ // }
2750
2750
//
2751
2751
// In Swift 6, the implicit self DRE refers to the self decl
2752
2752
// defined in the guard statement. In Swift 5 mode, the implicit
0 commit comments