docs: fix vim.tbl_get type annotations #23992

This commit is contained in:
Stanislav Asunkin
2023-06-12 01:48:13 +03:00
committed by GitHub
parent 46fab3831b
commit d3b9feccb3
2 changed files with 3 additions and 3 deletions

View File

@@ -2071,8 +2071,8 @@ tbl_get({o}, {...}) *vim.tbl_get()*
Parameters: ~ Parameters: ~
• {o} (table) Table to index • {o} (table) Table to index
• {...} (string) Optional strings (0 or more, variadic) via which to • {...} any Optional keys (0 or more, variadic) via which to index the
index the table table
Return: ~ Return: ~
any Nested value indexed by key (if it exists), else nil any Nested value indexed by key (if it exists), else nil

View File

@@ -456,7 +456,7 @@ end
--- </pre> --- </pre>
--- ---
---@param o table Table to index ---@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 ---@return any Nested value indexed by key (if it exists), else nil
function vim.tbl_get(o, ...) function vim.tbl_get(o, ...)