Skip to content

Commit a353497

Browse files
authored
Fixed recursive
1 parent cda999b commit a353497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/en-us/luau/tables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ local function deepCopy(original)
302302
-- then deep copy it to the key (index).
303303
-- Else (or) the type isn't a table,
304304
-- assign the default value to the index instead.
305-
copy[key] = type(value) == "table" and MY_deepCopy(value) or value
305+
copy[key] = type(value) == "table" and deepCopy(value) or value
306306
end
307307

308308
-- Return the finalized copy of the deep cloned table

0 commit comments

Comments
 (0)