Skip to content

Commit d249111

Browse files
authored
reference/syntax.md: support multiple if-guards on same line
1 parent 51654f0 commit d249111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ ForExpr ::= ‘for’ (‘(’ Enumerators ‘)’ | ‘{’ Enumerat
258258
| ‘for’ Enumerators (‘do’ Expr | ‘yield’ Expr) ForDo(enums, expr)
259259
Enumerators ::= Generator {semi Enumerator | Guard}
260260
Enumerator ::= Generator
261-
| Guard
261+
| Guard {Guard}
262262
| Pattern1 ‘=’ Expr GenAlias(pat, expr)
263263
Generator ::= [‘case’] Pattern1 ‘<-’ Expr GenFrom(pat, expr)
264264
Guard ::= ‘if’ PostfixExpr

0 commit comments

Comments
 (0)