From 1a2d29aee75e202895d101345d34f7798e3bfeba Mon Sep 17 00:00:00 2001 From: sammyette Date: Tue, 20 Dec 2022 01:42:58 -0400 Subject: [PATCH] fix: list subdocs for hilbish module --- nature/commands/doc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nature/commands/doc.lua b/nature/commands/doc.lua index 6ec91e5..bc45eea 100644 --- a/nature/commands/doc.lua +++ b/nature/commands/doc.lua @@ -26,8 +26,8 @@ commander.register('doc', function(args) f = io.open(moddocPath .. subdocName .. '.md', 'rb') if not f then moddocPath = moddocPath .. subdocName .. '/' - local subsubDocName = args[3] or '_index' - f = io.open(moddocPath .. subsubDocName .. '.md', 'rb') + subdocName = args[3] or '_index' + f = io.open(moddocPath .. subdocName .. '.md', 'rb') end if not f then print('No documentation found for ' .. mod .. '.')