From 40c8593abd331ee8b274212ac7f6ab6614719307 Mon Sep 17 00:00:00 2001 From: sammyette Date: Sat, 7 Jan 2023 14:16:27 -0400 Subject: [PATCH] fix(commands/doc): get proper doc/subdoc when printing not found --- nature/commands/doc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nature/commands/doc.lua b/nature/commands/doc.lua index 3c831ee..58b4677 100644 --- a/nature/commands/doc.lua +++ b/nature/commands/doc.lua @@ -40,7 +40,7 @@ Available sections: ]] .. table.concat(modules, ', ') f = io.open(moddocPath .. subdocName .. '.md', 'rb') end if not f then - print('No documentation found for ' .. mod .. '.') + print('No documentation found for ' .. args[#args] .. '.') return end end