From 3bb2d027597107a3d7f84ef61507104fd4dc050a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maria=20Jos=C3=A9=20Solano?= Date: Sun, 8 Dec 2024 19:18:40 -0800 Subject: [PATCH] docs: fix type of vim.validate value --- runtime/doc/lua.txt | 2 +- runtime/lua/vim/shared.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index 80808abd51..dad3d92238 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -2477,7 +2477,7 @@ vim.validate({name}, {value}, {validator}, {optional}, {message}) Parameters: ~ • {name} (`string`) Argument name - • {value} (`string`) Argument value + • {value} (`any`) Argument value • {validator} (`vim.validate.Validator`) • (`string|string[]`): Any value that can be returned from |lua-type()| in addition to `'callable'`: diff --git a/runtime/lua/vim/shared.lua b/runtime/lua/vim/shared.lua index 9314d34314..0fe8e99350 100644 --- a/runtime/lua/vim/shared.lua +++ b/runtime/lua/vim/shared.lua @@ -1013,7 +1013,7 @@ do --- best performance. --- --- @param name string Argument name - --- @param value string Argument value + --- @param value any Argument value --- @param validator vim.validate.Validator --- - (`string|string[]`): Any value that can be returned from |lua-type()| in addition to --- `'callable'`: `'boolean'`, `'callable'`, `'function'`, `'nil'`, `'number'`, `'string'`, `'table'`,