mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 01:08:20 +00:00
docs: stricter bufname and bufnr types (#27454)
This commit is contained in:

committed by
GitHub

parent
4860cc5bdc
commit
1c7b0b9d5f
@@ -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}]])',
|
||||
},
|
||||
|
Reference in New Issue
Block a user