Skip to content

Commit 0943176

Browse files
committed
Fix comment
1 parent 176969d commit 0943176

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CSDiagnostics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,7 @@ bool ContextualFailure::diagnoseConversionToNil() const {
19501950
}
19511951

19521952
// `nil` is passed as an argument to a parameter which doesn't
1953-
// expect it e.g. `foo(a: nil)` or `s[x: nil]` or \S.[x: nil].
1953+
// expect it e.g. `foo(a: nil)`, `s[x: nil]` or `\S.[x: nil]`.
19541954
// FIXME: Find a more robust way of checking this.
19551955
if (isa<ApplyExpr>(enclosingExpr) || isa<SubscriptExpr>(enclosingExpr) ||
19561956
isa<KeyPathExpr>(enclosingExpr))

0 commit comments

Comments
 (0)