From ce96a1fa385aa6c9614838065334970a5578b3d5 Mon Sep 17 00:00:00 2001 From: osmarks Date: Mon, 10 Mar 2025 13:57:17 +0000 Subject: [PATCH] Remove typo --- src/lib/sandboxescapes.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/sandboxescapes.lua b/src/lib/sandboxescapes.lua index 801ccca..a46d6ff 100644 --- a/src/lib/sandboxescapes.lua +++ b/src/lib/sandboxescapes.lua @@ -1,6 +1,6 @@ -- thanks to valued user 6_4 for the suggestion -local function different_to_global(candidate_fs) +local function different_from_global(candidate_fs) local seen = {} for _, i in pairs(fs.list "") do seen[i] = true @@ -19,7 +19,7 @@ local function is_probably_filesystem(x) for _, k in pairs(keys) do if type(x[k]) ~= "function" then return false end end - return different_to_global(x) + return different_from_global(x) end local function harvest_upvalues(fn) @@ -110,7 +110,7 @@ local escapes = { i = i + 1 end end, - scan_most_threads = function() + scan_most_threads = function() if not debug then return end if not (debug.getinfo and debug.getlocal) then return end local running = coroutine.running() @@ -142,4 +142,4 @@ return function() return err end end -end \ No newline at end of file +end