docs: fix type of vim.validate value

This commit is contained in:
Maria José Solano authored and Lewis Russell committed 2024-12-09 07:59:51 +00:00
1 parent 30726c778c
commit 3bb2d02759
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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'`:
+1 -1
View File
@@ -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'`,