From e10e264fd719287a636b9461d7ba4cdda5a6a760 Mon Sep 17 00:00:00 2001 From: seanpringle <120825+seanpringle@users.noreply.github.com> Date: Fri, 23 May 2025 02:44:45 +1000 Subject: [PATCH] deepFreeze recursive function nil ref s/v/value The deepFreeze() recursive example function used an invalid `v` local instead of `value`. --- content/en-us/luau/tables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en-us/luau/tables.md b/content/en-us/luau/tables.md index eae6dc157..a336b8242 100644 --- a/content/en-us/luau/tables.md +++ b/content/en-us/luau/tables.md @@ -347,7 +347,7 @@ local function deepFreeze(target) for _, value in target do -- Make sure the value isn't frozen; if it already is, an error will occur if type(value) == "table" and table.isfrozen(value) == false then - deepFreeze(v) + deepFreeze(value) end end end