Merge pull request #222 from th-we/fix-dup-return

Avoid return documentation slipping into preceding function documenation
This commit is contained in:
Steve J Donovan 2016-06-18 17:31:20 +02:00 committed by GitHub
commit 5e2f665a49
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ function doc.expand_annotation_item (tags, last_item)
tags:add('name',item_name..'-'..tag..acount)
acount = acount + 1
return true
elseif tag == 'return' then
elseif tags.error and tag == 'return' then
last_item:set_tag(tag,value)
end
end