aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-01-19 20:29:09 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-01-19 20:29:36 -0700
commitc17309dbc52c055dfd147ba46c6fa110df6b8227 (patch)
tree3773ed747e002cba9cf8a9b1d9ae1b3edc2e06e4 /doc
parent17e574fec60b5e675a8ac69d197f1cc28336056c (diff)
downloadzig-c17309dbc52c055dfd147ba46c6fa110df6b8227.tar.gz
zig-c17309dbc52c055dfd147ba46c6fa110df6b8227.zip
add switch statement support to parser
Diffstat (limited to 'doc')
-rw-r--r--doc/langref.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/langref.md b/doc/langref.md
index 97c184365e..61131d20e7 100644
--- a/doc/langref.md
+++ b/doc/langref.md
@@ -94,7 +94,7 @@ BlockExpression : IfExpression | Block | WhileExpression | ForExpression | Switc
SwitchExpression : "switch" "(" Expression ")" "{" many(SwitchProng) "}"
-SwitchProng : (list(SwitchItem, ",") | "else") option("(" "Symbol" ")") "=>" Expression ","
+SwitchProng : (list(SwitchItem, ",") | "else") option("," "(" "Symbol" ")") "=>" Expression ","
SwitchItem : Expression | (Expression "..." Expression)