Skip to content

Commit 832f968

Browse files
authored
Apply suggestions from code review
1 parent 970fe9a commit 832f968

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/en-us/luau/tables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ print(testDictionary[part]) -- true
168168

169169
### Write to dictionaries
170170

171-
To define or rewrite the value of a new or existing dictionary key, declare the key name in brackets (`[key]`) or if the key is a string use (`.key`) followed by `=` and the value:
171+
To define or rewrite the value of a new or existing dictionary key, declare the key name in brackets (`[key]`) or, if the key is a string, use (`.key`) followed by `=` and the value:
172172

173173
```lua
174174
local testDictionary = {
@@ -345,7 +345,7 @@ local function deepFreeze(target)
345345

346346
-- Check each key of the table and freeze it if it's a table
347347
for _, value in target do
348-
-- Making sure the value isn't frozen, as if it already is an error will occur
348+
-- Make sure the value isn't frozen; if it already is, an error will occur
349349
if type(value) == "table" and table.isfrozen(value) == false then
350350
deepFreeze(v)
351351
end

0 commit comments

Comments
 (0)