docs(luv): correct uv.spawn options.args docs about the first argument

045bf29b6f
This commit is contained in:
Christian Clason 2023-09-02 16:38:58 +02:00
parent 0c86828ac5
commit 4ea4d72af8

View File

@ -1301,11 +1301,11 @@ uv.spawn({path}, {options}, {on_exit}) *uv.spawn()*
The `options` table accepts the following fields: The `options` table accepts the following fields:
- `options.args` - Command line arguments as a list of - `options.args` - Command line arguments as a list of
string. The first string should be the path to the strings. The first string should not be the path to the
program. On Windows, this uses CreateProcess which program, since that is already provided via `path`. On
concatenates the arguments into a string. This can cause Windows, this uses CreateProcess which concatenates the
some strange errors. (See `options.verbatim` below for arguments into a string. This can cause some strange
Windows.) errors (see `options.verbatim` below for Windows).
- `options.stdio` - Set the file descriptors that will be - `options.stdio` - Set the file descriptors that will be
made available to the child process. The convention is made available to the child process. The convention is
that the first entries are stdin, stdout, and stderr. that the first entries are stdin, stdout, and stderr.