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

dev
TorchedSammy 2021-12-04 17:53:34 -04:00
parent 3d36786cc7
commit 284d4e01a3
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 2 additions and 2 deletions

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, ', ')