neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit d3b9feccb39124cefbe4b0c492fb0bc3f777d0b4
parent 46fab3831b12352b513b6ceb6d482380a71d90e4
Author: Stanislav Asunkin <1353637+stasjok@users.noreply.github.com>
Date:   Mon, 12 Jun 2023 01:48:13 +0300

docs: fix vim.tbl_get type annotations #23992


Diffstat:
Mruntime/doc/lua.txt | 4++--
Mruntime/lua/vim/shared.lua | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt @@ -2071,8 +2071,8 @@ tbl_get({o}, {...}) *vim.tbl_get()* Parameters: ~ • {o} (table) Table to index - • {...} (string) Optional strings (0 or more, variadic) via which to - index the table + • {...} any Optional keys (0 or more, variadic) via which to index the + table Return: ~ any Nested value indexed by key (if it exists), else nil diff --git a/runtime/lua/vim/shared.lua b/runtime/lua/vim/shared.lua @@ -456,7 +456,7 @@ end --- </pre> --- ---@param o table Table to index ----@param ... string Optional strings (0 or more, variadic) via which to index the table +---@param ... any Optional keys (0 or more, variadic) via which to index the table --- ---@return any Nested value indexed by key (if it exists), else nil function vim.tbl_get(o, ...)