File tree 2 files changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/parsing
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2493,7 +2493,7 @@ object Parsers {
2493
2493
2494
2494
/** ForExpr ::= ‘for’ ‘(’ Enumerators ‘)’ {nl} [‘do‘ | ‘yield’] Expr
2495
2495
* | ‘for’ ‘{’ Enumerators ‘}’ {nl} [‘do‘ | ‘yield’] Expr
2496
- * | ‘for’ Enumerators {nl} (‘do‘ | ‘yield’) Expr
2496
+ * | ‘for’ Enumerators (‘do‘ | ‘yield’) Expr
2497
2497
*/
2498
2498
def forExpr (): Tree =
2499
2499
atSpan(in.skipToken()) {
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ BlockStat ::= Import
261
261
262
262
ForExpr ::= ‘for’ ‘(’ Enumerators0 ‘)’ {nl} [‘do‘ | ‘yield’] Expr
263
263
| ‘for’ ‘{’ Enumerators0 ‘}’ {nl} [‘do‘ | ‘yield’] Expr
264
- | ‘for’ Enumerators0 {nl} (‘do‘ | ‘yield’) Expr
264
+ | ‘for’ Enumerators0 (‘do‘ | ‘yield’) Expr
265
265
Enumerators0 ::= {nl} Enumerators [semi]
266
266
Enumerators ::= Generator {semi Enumerator | Guard}
267
267
Enumerator ::= Generator
You can’t perform that action at this time.
0 commit comments