File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ To copy a table without any nested tables, Luau offers the `Library.table.clone(
280280local original = {
281281 key = " value" ,
282282 engine = " Roblox" ,
283- playerId = 505306092
283+ playerID = 505306092
284284}
285285
286286local clone = table .clone (original )
@@ -314,7 +314,7 @@ With the function in place, you can make a deep copy as follows:
314314local 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
339339local target = {
340340 key = " value" ,
341341 engine = " Roblox" ,
342- playerId = 505306092
342+ playerID = 505306092
343343}
344344
345345table .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:
370370local 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
383383deepFreeze (target )
384- target .playerInfo .playerId = 1 -- > attempt to modify a readonly table
384+ target .playerInfo .playerID = 1 -- > attempt to modify a readonly table
385385```
You can’t perform that action at this time.
0 commit comments