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

@@ -582,7 +582,7 @@ function vim.fn.bufloaded(buf) end
--- echo bufname("file2") " name of buffer where "file2" matches.
--- <
---
--- @param buf? any
--- @param buf? integer|string
--- @return string
function vim.fn.bufname(buf) end
@@ -599,7 +599,7 @@ function vim.fn.bufname(buf) end
--- number necessarily exist, because ":bwipeout" may have removed
--- them. Use bufexists() to test for the existence of a buffer.
---
--- @param buf? any
--- @param buf? integer|string
--- @param create? any
--- @return integer
function vim.fn.bufnr(buf, create) end