aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Asunkin <1353637+stasjok@users.noreply.github.com>2023-06-12 01:48:13 +0300
committerGitHub <noreply@github.com>2023-06-11 15:48:13 -0700
commitd3b9feccb39124cefbe4b0c492fb0bc3f777d0b4 (patch)
tree871e8d4592a001e36c8c1b56109ec10f97186261
parent46fab3831b12352b513b6ceb6d482380a71d90e4 (diff)
downloadrneovim-d3b9feccb39124cefbe4b0c492fb0bc3f777d0b4.tar.gz
rneovim-d3b9feccb39124cefbe4b0c492fb0bc3f777d0b4.tar.bz2
rneovim-d3b9feccb39124cefbe4b0c492fb0bc3f777d0b4.zip
docs: fix vim.tbl_get type annotations #23992
-rw-r--r--runtime/doc/lua.txt4
-rw-r--r--runtime/lua/vim/shared.lua2
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, ...)