Skip to content

Commit 3a7ab9f

Browse files
authored
Change statement -> keyword
break and continue are keywords, not commands
1 parent 5454b56 commit 3a7ab9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/en-us/luau/control-structures.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ World f
256256

257257
### Breaking Loops
258258

259-
To force a loop to end, use the `break` command. The following code sample shows how to break an infinite `while``do` loop.
259+
To force a loop to end, use the `break` keyword. The following code sample shows how to break an infinite `while``do` loop.
260260

261261
```lua
262262
local secondsElapsed = 0
@@ -286,7 +286,7 @@ Five seconds elapsed. Time to move on!
286286

287287
### Continuing Loops
288288

289-
To force a loop to iterate and start again, use the `continue` statement. A `for` loop will iterate the counter, `while` and `repeat`..`until` will check the loop condition before continuing. The following code sample gets all children of an `Class.Instance` of a specific `Class.Instance.ClassName`.
289+
To force a loop to iterate and start again, use the `continue` keyword. A `for` loop will iterate the counter, `while` and `repeat`..`until` will check the loop condition before continuing. The following code sample gets all children of an `Class.Instance` of a specific `Class.Instance.ClassName`.
290290

291291
```lua
292292
local function GetChildrenOfClass(parent: Instance, className: string): {Instance}

0 commit comments

Comments
 (0)