docs: fix type of vim.validate value

This commit is contained in:
Maria José Solano 2024-12-08 19:18:40 -08:00 committed by Lewis Russell
parent 30726c778c
commit 3bb2d02759
2 changed files with 2 additions and 2 deletions

View File

@ -2477,7 +2477,7 @@ vim.validate({name}, {value}, {validator}, {optional}, {message})
Parameters: ~ Parameters: ~
• {name} (`string`) Argument name • {name} (`string`) Argument name
• {value} (`string`) Argument value • {value} (`any`) Argument value
• {validator} (`vim.validate.Validator`) • {validator} (`vim.validate.Validator`)
• (`string|string[]`): Any value that can be returned • (`string|string[]`): Any value that can be returned
from |lua-type()| in addition to `'callable'`: from |lua-type()| in addition to `'callable'`:

View File

@ -1013,7 +1013,7 @@ do
--- best performance. --- best performance.
--- ---
--- @param name string Argument name --- @param name string Argument name
--- @param value string Argument value --- @param value any Argument value
--- @param validator vim.validate.Validator --- @param validator vim.validate.Validator
--- - (`string|string[]`): Any value that can be returned from |lua-type()| in addition to --- - (`string|string[]`): Any value that can be returned from |lua-type()| in addition to
--- `'callable'`: `'boolean'`, `'callable'`, `'function'`, `'nil'`, `'number'`, `'string'`, `'table'`, --- `'callable'`: `'boolean'`, `'callable'`, `'function'`, `'nil'`, `'number'`, `'string'`, `'table'`,