Skip to content

Commit 310bde0

Browse files
Update src/Compilers/CSharp/Portable/Parser/LanguageParser.cs
1 parent fc45a77 commit 310bde0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Compilers/CSharp/Portable/Parser/LanguageParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5050,7 +5050,7 @@ private void ParseVariableDeclarators(
50505050
}
50515051
else if (this.CurrentToken.Kind == SyntaxKind.CommaToken)
50525052
{
5053-
// If we see `for (int i = 0, i < ...` then we do not want to consume j as the next declarator as it
5053+
// If we see `for (int i = 0, i < ...` then we do not want to the second 'i' as the next declarator as it
50545054
// is more likely that the user meant to write `for (int i = 0; i < ...` instead and accidentally
50555055
// used a comma instead of a semicolon.
50565056
//

0 commit comments

Comments
 (0)