Skip to content

Commit a11c392

Browse files
committed
fix error
1 parent d023998 commit a11c392

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

script/parser/luadoc.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2137,9 +2137,9 @@ return {
21372137
doc.originalComment = comment
21382138
doc.virtual = true
21392139
ast.state.pluginDocs = pluginDocs
2140-
return true
2140+
return doc
21412141
end
2142-
return false
2142+
return nil
21432143
end,
21442144
luadoc = luadoc
21452145
}

script/plugins/astHelper.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function _M.addParamTypeDoc(ast, typename, source)
7878
('%s %s'):format(paramname, typename),
7979
source.start - 1)
8080

81-
return luadoc.buildAndBindDoc(ast, source, comment)
81+
return luadoc.buildAndBindDoc(ast, source.parent.parent, comment)
8282
end
8383

8484
return _M

0 commit comments

Comments
 (0)