diff options
author | tomjridge <tom.j.ridge@googlemail.com> | 2016-08-15 17:40:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-15 17:40:13 +0100 |
commit | aec55c57ec8946e23f69f04302d096afcc0182e6 (patch) | |
tree | 24cf9b18d770f0c4643551df2d1ba9ead019a281 | |
parent | 91346c541474adb605050aa672ddc6007ef971e3 (diff) | |
download | scala-aec55c57ec8946e23f69f04302d096afcc0182e6.tar.gz scala-aec55c57ec8946e23f69f04302d096afcc0182e6.tar.bz2 scala-aec55c57ec8946e23f69f04302d096afcc0182e6.zip |
Fix typos in syntax
-rw-r--r-- | spec/13-syntax-summary.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/13-syntax-summary.md b/spec/13-syntax-summary.md index a4b4aae570..44c481f9f6 100644 --- a/spec/13-syntax-summary.md +++ b/spec/13-syntax-summary.md @@ -132,7 +132,7 @@ grammar: Expr1 ::= `if' `(' Expr `)' {nl} Expr [[semi] `else' Expr] | `while' `(' Expr `)' {nl} Expr | `try' (`{' Block `}' | Expr) [`catch' `{' CaseClauses `}'] [`finally' Expr] - | `do' Expr [semi] `while' `(' Expr ')' + | `do' Expr [semi] `while' `(' Expr `)' | `for' (`(' Enumerators `)' | `{' Enumerators `}') {nl} [`yield'] Expr | `throw' Expr | `return' [Expr] @@ -190,12 +190,12 @@ grammar: | varid | Literal | StableId - | StableId ‘(’ [Patterns ‘)’ + | StableId ‘(’ [Patterns] ‘)’ | StableId ‘(’ [Patterns ‘,’] [varid ‘@’] ‘_’ ‘*’ ‘)’ | ‘(’ [Patterns] ‘)’ | XmlPattern Patterns ::= Pattern [‘,’ Patterns] - | ‘_’ * + | ‘_’ ‘*’ TypeParamClause ::= ‘[’ VariantTypeParam {‘,’ VariantTypeParam} ‘]’ FunTypeParamClause::= ‘[’ TypeParam {‘,’ TypeParam} ‘]’ |