diff options
-rw-r--r-- | runtime/doc/lua.txt | 4 | ||||
-rw-r--r-- | 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 --- </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, ...) |