From d3b9feccb39124cefbe4b0c492fb0bc3f777d0b4 Mon Sep 17 00:00:00 2001 From: Stanislav Asunkin <1353637+stasjok@users.noreply.github.com> Date: Mon, 12 Jun 2023 01:48:13 +0300 Subject: docs: fix vim.tbl_get type annotations #23992 --- runtime/doc/lua.txt | 4 ++-- runtime/lua/vim/shared.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index 44682d40e5..7cd13926c7 100644 --- 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 index f899157ab7..dd05299295 100644 --- a/runtime/lua/vim/shared.lua +++ b/runtime/lua/vim/shared.lua @@ -456,7 +456,7 @@ end --- --- ---@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, ...) -- cgit