docs: stricter bufname and bufnr types (#27454)

This commit is contained in:
Maria José Solano
2024-02-12 20:15:27 -08:00
committed by GitHub
parent 4860cc5bdc
commit 1c7b0b9d5f
2 changed files with 4 additions and 4 deletions

View File

@@ -809,7 +809,7 @@ M.funcs = {
<
]=],
name = 'bufname',
params = { { 'buf', 'any' } },
params = { { 'buf', 'integer|string' } },
returns = 'string',
signature = 'bufname([{buf}])',
},
@@ -832,7 +832,7 @@ M.funcs = {
]=],
name = 'bufnr',
params = { { 'buf', 'any' }, { 'create', 'any' } },
params = { { 'buf', 'integer|string' }, { 'create', 'any' } },
returns = 'integer',
signature = 'bufnr([{buf} [, {create}]])',
},