Skip to content

Commit a8974f4

Browse files
committed
Fix throwing example
1 parent 39331e4 commit a8974f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/statement.dd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ switch (i)
11961196
$(SPEC_RUNNABLE_EXAMPLE_RUN
11971197
--------------
11981198
string message;
1199-
foreach (i; 0..5)
1199+
foreach (i; 1..5)
12001200
{
12011201
switch (i)
12021202
{
@@ -1212,7 +1212,7 @@ foreach (i; 0..5)
12121212
continue; // don't append a comma
12131213

12141214
case 1: // valid: ends with 'goto' (explicit fall-through to next case.)
1215-
message ~= "one: ";
1215+
message ~= ">";
12161216
goto case;
12171217

12181218
case 2: // valid: this is the last case in the switch statement.

0 commit comments

Comments
 (0)