diff options
author | Lukas Rytz <lukas.rytz@typesafe.com> | 2016-08-17 07:02:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-17 07:02:31 +0200 |
commit | b8e4d1f692c5712990b45f50625627015112df32 (patch) | |
tree | 24cf9b18d770f0c4643551df2d1ba9ead019a281 /spec/13-syntax-summary.md | |
parent | 91346c541474adb605050aa672ddc6007ef971e3 (diff) | |
parent | aec55c57ec8946e23f69f04302d096afcc0182e6 (diff) | |
download | scala-b8e4d1f692c5712990b45f50625627015112df32.tar.gz scala-b8e4d1f692c5712990b45f50625627015112df32.tar.bz2 scala-b8e4d1f692c5712990b45f50625627015112df32.zip |
Merge pull request #5344 from tomjridge/2.12.x
Fix typos in syntax
Diffstat (limited to 'spec/13-syntax-summary.md')
-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} ‘]’ |