From 8801b77ed09876605e42f4a3fddf8c020c14b711 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 5 Oct 2024 08:52:57 -0700 Subject: fix(docs): missing `@returns` desc in _meta/api.lua #30673 --- scripts/gen_eval_files.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'scripts/gen_eval_files.lua') diff --git a/scripts/gen_eval_files.lua b/scripts/gen_eval_files.lua index 234028b972..095daaeb21 100755 --- a/scripts/gen_eval_files.lua +++ b/scripts/gen_eval_files.lua @@ -276,7 +276,7 @@ local function get_api_meta() if not deprecated then r.desc = fun.desc - r.return_desc = fun.returns[1].desc + r.returns_desc = fun.returns[1].desc end ret[fun.name] = r @@ -370,10 +370,9 @@ local function render_api_meta(_f, fun, write) end if fun.returns ~= '' then - local ret_desc = fun.returns_desc and ' : ' .. fun.returns_desc or '' - ret_desc = util.md_to_vimdoc(ret_desc, 0, 0, 74) + local ret_desc = fun.returns_desc and ' # ' .. fun.returns_desc or '' local ret = LUA_API_RETURN_OVERRIDES[fun.name] or fun.returns - write('--- @return ' .. ret .. ret_desc) + write(util.prefix('--- ', '@return ' .. ret .. ret_desc)) end local param_str = table.concat(param_names, ', ') -- cgit