Skip to content

Commit 9332fa4

Browse files
authored
Apply suggestions from code review
1 parent 1647c2c commit 9332fa4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -286,16 +286,16 @@ 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` 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`.
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|ClassName`.
290290

291291
```lua
292292
local function GetChildrenOfClass(parent: Instance, className: string): {Instance}
293-
local children = {}
294-
for _, child in parent:GetChildren() do
295-
if child.ClassName ~= className then continue end -- iterates the for loop
296-
table.insert(children, child)
297-
end
293+
local children = {}
294+
for _, child in parent:GetChildren() do
295+
if child.ClassName ~= className then continue end -- Iterates the loop
296+
table.insert(children, child)
297+
end
298298

299-
return children
299+
return children
300300
end
301301
```

0 commit comments

Comments
 (0)