From 0e0de7b7fdd83c0a458e51a4bf12b6444025c0f8 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Fri, 19 May 2017 23:15:07 +0100 Subject: [PATCH] Switch cases do not require colon --- docs/julia.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/julia.rst b/docs/julia.rst index 42a3b6638..f67b33843 100644 --- a/docs/julia.rst +++ b/docs/julia.rst @@ -88,9 +88,9 @@ Grammar:: Expression = FunctionCall | Identifier | Literal Switch = - 'switch' Expression Case+ ( 'default' ':' Block )? + 'switch' Expression Case+ ( 'default' Block )? Case = - 'case' Literal ':' Block + 'case' Literal Block ForLoop = 'for' Block Expression Block Block BreakContinue =