Skip to content

Commit f7ca29b

Browse files
committed
Simplify break statement snippets
1 parent 407bc54 commit f7ca29b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/New Features/Break Statement.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
sidebar_position: 1
33
---
44
This keyword accepts an optional integral argument which tells it how many levels of enclosing loops it should break. The default value is 1, thus breaking out of the current loop.
5-
```pluto showLineNumbers title="Example 1"
5+
```pluto norun title="Example 1"
66
for i = 1, 10 do -- Loop 1.
77
break 1 -- This is identical to `break` without any arguments.
88
end
99
```
10-
```pluto showLineNumbers title="Example 2"
10+
```pluto norun title="Example 2"
1111
for i = 1, 10 do -- Loop 1.
1212
for ii = 1, 5 do -- Loop 2.
1313
break 1 -- This will break from Loop 2.

0 commit comments

Comments
 (0)