2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-01 19:23:24 +00:00

chore: rename f to fname in subdoc map (doesnt redefine f)

This commit is contained in:
TorchedSammy 2021-12-04 17:53:34 -04:00
parent 3d36786cc7
commit 284d4e01a3
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -72,8 +72,8 @@ These are the global Hilbish functions that are always available and not part of
return
end
funcdocs = f:read '*a'
local subdocs = table.map(fs.readdir(moddocPath), function(f)
return lunacolors.underline(lunacolors.blue(string.gsub(f, '.txt', '')))
local subdocs = table.map(fs.readdir(moddocPath), function(fname)
return lunacolors.underline(lunacolors.blue(string.gsub(fname, '.txt', '')))
end)
if subdocName == 'index' then
funcdocs = funcdocs .. '\nSubdocs: ' .. table.concat(subdocs, ', ')