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

This commit is contained in:
Geoff Leyland 2012-10-29 13:17:44 +13:00
parent 53166f626f
commit a2a3da455e
1 changed files with 1 additions and 1 deletions

View File

@ -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] == '...'