From 5be42470c3a53355833abe53ccd38c363f9ee768 Mon Sep 17 00:00:00 2001 From: Kyle McLamb Date: Fri, 3 Jun 2016 03:28:00 -0400 Subject: [PATCH] Fix logic error when dumping non-function objects --- ldoc/doc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldoc/doc.lua b/ldoc/doc.lua index 05474e8..13cabad 100644 --- a/ldoc/doc.lua +++ b/ldoc/doc.lua @@ -1285,7 +1285,7 @@ function Item:dump(verbose) print 'description:' print(self.description) end - if #self.params > 0 then + if self.params and #self.params > 0 then print 'parameters:' for _,p in ipairs(self.params) do print('',p,self.params.map[p])