Remove typo
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
-- thanks to valued user 6_4 for the suggestion
|
-- 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 = {}
|
local seen = {}
|
||||||
for _, i in pairs(fs.list "") do
|
for _, i in pairs(fs.list "") do
|
||||||
seen[i] = true
|
seen[i] = true
|
||||||
@@ -19,7 +19,7 @@ local function is_probably_filesystem(x)
|
|||||||
for _, k in pairs(keys) do
|
for _, k in pairs(keys) do
|
||||||
if type(x[k]) ~= "function" then return false end
|
if type(x[k]) ~= "function" then return false end
|
||||||
end
|
end
|
||||||
return different_to_global(x)
|
return different_from_global(x)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function harvest_upvalues(fn)
|
local function harvest_upvalues(fn)
|
||||||
@@ -110,7 +110,7 @@ local escapes = {
|
|||||||
i = i + 1
|
i = i + 1
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
scan_most_threads = function()
|
scan_most_threads = function()
|
||||||
if not debug then return end
|
if not debug then return end
|
||||||
if not (debug.getinfo and debug.getlocal) then return end
|
if not (debug.getinfo and debug.getlocal) then return end
|
||||||
local running = coroutine.running()
|
local running = coroutine.running()
|
||||||
@@ -142,4 +142,4 @@ return function()
|
|||||||
return err
|
return err
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user