Skip to content

Commit d53e21e

Browse files
authored
deepFreeze recursive function nil ref s/v/value (#1112)
## Changes The deepFreeze() recursive example function used an invalid `v` local instead of `value`. ## Checks By submitting your pull request for review, you agree to the following: - [x] This contribution was created in whole or in part by me, and I have the right to submit it under the terms of this repository's open source licenses. - [x] I understand and agree that this contribution and a record of it are public, maintained indefinitely, and may be redistributed under the terms of this repository's open source licenses. - [x] To the best of my knowledge, all proposed changes are accurate.
1 parent 839f376 commit d53e21e

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
@@ -347,7 +347,7 @@ local function deepFreeze(target)
347347
for _, value in target do
348348
-- 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
350-
deepFreeze(v)
350+
deepFreeze(value)
351351
end
352352
end
353353
end

0 commit comments

Comments
 (0)