Skip to content

Commit c9caa7e

Browse files
committed
Update syntax.md
1 parent 026be41 commit c9caa7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/internals/syntax.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ TypeCaseClause ::= ‘case’ InfixType ‘=>’ Type [nl]
273273
Pattern ::= Pattern1 { ‘|’ Pattern1 } Alternative(pats)
274274
Pattern1 ::= Pattern2 [‘:’ RefinedType] Bind(name, Typed(Ident(wildcard), tpe))
275275
| ‘given’ PatVar ‘:’ RefinedType
276-
Pattern2 ::= [id ‘@’] InfixPattern Bind(name, pat)
276+
Pattern2 ::= [id ‘as’] InfixPattern Bind(name, pat)
277277
InfixPattern ::= SimplePattern { id [nl] SimplePattern } InfixOp(pat, op, pat)
278278
SimplePattern ::= PatVar Ident(wildcard)
279279
| Literal Bind(name, Ident(wildcard))

0 commit comments

Comments
 (0)