From a2a3da455e2188b81d8d9dc40a381b9eeaa81fde Mon Sep 17 00:00:00 2001 From: Geoff Leyland Date: Mon, 29 Oct 2012 13:17:44 +1300 Subject: [PATCH] Remove requirement to have more than one formal argument when using comments on the arguments. I'm not sure what that was for, so I might have broken something --- ldoc/doc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldoc/doc.lua b/ldoc/doc.lua index 489c215..3bf6471 100644 --- a/ldoc/doc.lua +++ b/ldoc/doc.lua @@ -432,7 +432,7 @@ function Item:finish() -- if available as the authoritative list, and warn if there's an inconsistency. if self.formal_args then local fargs = self.formal_args - if #fargs ~= 1 then + if #fargs ~= 0 then local pnames, pcomments = names, comments names, comments = List(),List() local varargs = fargs[#fargs] == '...'