Skip to content

Commit ded415e

Browse files
authored
Merge pull request #2464 from Varriount/patch-1
Pad `return` type annotations when required.
2 parents 9fd6f7e + 449a151 commit ded415e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/core/completion/completion.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2192,7 +2192,8 @@ local function buildluaDocOfFunction(func, pad)
21922192
end
21932193
for _, rtn in ipairs(returns) do
21942194
index = index + 1
2195-
buf[#buf+1] = ('---@return ${%d:%s}'):format(
2195+
buf[#buf+1] = ('---%s@return ${%d:%s}'):format(
2196+
pad and ' ' or '',
21962197
index,
21972198
rtn
21982199
)

0 commit comments

Comments
 (0)