Skip to content

Commit a27e4bb

Browse files
authored
Apply suggestions from code review
1 parent e70fd46 commit a27e4bb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/en-us/luau/tables.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ To copy a table without any nested tables, Luau offers the `Library.table.clone(
280280
local original = {
281281
key = "value",
282282
engine = "Roblox",
283-
playerId = 505306092
283+
playerID = 505306092
284284
}
285285

286286
local clone = table.clone(original)
@@ -314,7 +314,7 @@ With the function in place, you can make a deep copy as follows:
314314
local original = {
315315
key = "value",
316316
playerInfo = {
317-
playerId = 505306092,
317+
playerID = 505306092,
318318
playerName = "PlayerName"
319319
},
320320
otherInfo = {
@@ -339,11 +339,11 @@ To freeze a table without any nested tables, Luau offers the `Library.table.free
339339
local target = {
340340
key = "value",
341341
engine = "Roblox",
342-
playerId = 505306092
342+
playerID = 505306092
343343
}
344344

345345
table.freeze(target)
346-
target.playerId = 1 --> attempt to modify a readonly table
346+
target.playerID = 1 --> attempt to modify a readonly table
347347
```
348348

349349
### Deep Freezes
@@ -370,7 +370,7 @@ With the function in place, you can deep freeze a table as follows:
370370
local target = {
371371
key = "value",
372372
playerInfo = {
373-
playerId = 505306092,
373+
playerID = 505306092,
374374
playerName = "PlayerName"
375375
},
376376
otherInfo = {
@@ -381,5 +381,5 @@ local target = {
381381
}
382382

383383
deepFreeze(target)
384-
target.playerInfo.playerId = 1 --> attempt to modify a readonly table
384+
target.playerInfo.playerID = 1 --> attempt to modify a readonly table
385385
```

0 commit comments

Comments
 (0)