Skip to content

Commit 1c71721

Browse files
authored
Apply suggestions from code review
1 parent a7d5ec0 commit 1c71721

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2493,7 +2493,7 @@ object Parsers {
24932493

24942494
/** ForExpr ::= ‘for’ ‘(’ Enumerators ‘)’ {nl} [‘do‘ | ‘yield’] Expr
24952495
* | ‘for’ ‘{’ Enumerators ‘}’ {nl} [‘do‘ | ‘yield’] Expr
2496-
* | ‘for’ Enumerators {nl} (‘do‘ | ‘yield’) Expr
2496+
* | ‘for’ Enumerators (‘do‘ | ‘yield’) Expr
24972497
*/
24982498
def forExpr(): Tree =
24992499
atSpan(in.skipToken()) {

docs/docs/reference/syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ BlockStat ::= Import
261261
262262
ForExpr ::= ‘for’ ‘(’ Enumerators0 ‘)’ {nl} [‘do‘ | ‘yield’] Expr
263263
| ‘for’ ‘{’ Enumerators0 ‘}’ {nl} [‘do‘ | ‘yield’] Expr
264-
| ‘for’ Enumerators0 {nl} (‘do‘ | ‘yield’) Expr
264+
| ‘for’ Enumerators0 (‘do‘ | ‘yield’) Expr
265265
Enumerators0 ::= {nl} Enumerators [semi]
266266
Enumerators ::= Generator {semi Enumerator | Guard}
267267
Enumerator ::= Generator

0 commit comments

Comments
 (0)