docs: don't mention executable() can return -1

This cannot happen for neovim.
This commit is contained in:
dundargoc 2024-04-05 18:07:36 +02:00 committed by dundargoc
parent 703f97568d
commit 0443f06b71
3 changed files with 2 additions and 5 deletions

View File

@ -1268,7 +1268,6 @@ executable({expr}) *executable()*
The result is a Number:
1 exists
0 does not exist
-1 not implemented on this system
|exepath()| can be used to get the full path of an executable.
execute({command} [, {silent}]) *execute()*

View File

@ -1598,11 +1598,10 @@ function vim.fn.eventhandler() end
--- The result is a Number:
--- 1 exists
--- 0 does not exist
--- -1 not implemented on this system
--- |exepath()| can be used to get the full path of an executable.
---
--- @param expr any
--- @return 0|1|-1
--- @return 0|1
function vim.fn.executable(expr) end
--- Execute {command} and capture its output.

View File

@ -2071,14 +2071,13 @@ M.funcs = {
The result is a Number:
1 exists
0 does not exist
-1 not implemented on this system
|exepath()| can be used to get the full path of an executable.
]=],
fast = true,
name = 'executable',
params = { { 'expr', 'any' } },
returns = '0|1|-1',
returns = '0|1',
signature = 'executable({expr})',
},
execute = {