From d88a65ae78190eb6a2a94938c93c87c2148c60fc Mon Sep 17 00:00:00 2001 From: mitchell <70453897+orbitalquark@users.noreply.github.com> Date: Mon, 5 Oct 2020 16:07:34 -0400 Subject: Various manual and documentation updates. --- docs/api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/api.md') diff --git a/docs/api.md b/docs/api.md index 5748da17..57808bb4 100644 --- a/docs/api.md +++ b/docs/api.md @@ -6304,7 +6304,7 @@ Parameters: arguments to pass to it. `PATH` is searched for program names. * *`cwd`*: Optional current working directory (cwd) for the child process. When omitted, the parent's cwd is used. -* *`env`*: Optional table of environment variables for the child process. +* *`env`*: Optional map of environment variables for the child process. When omitted, the parent's environment is used. * *`stdout_cb`*: Optional Lua function that accepts a string parameter for a block of standard output read from the child. Stdout is read asynchronously @@ -6323,7 +6323,7 @@ Usage: * `os.spawn('lua ' .. buffer.filename, print)` * `proc = os.spawn('lua -e "print(io.read())"', print) - proc:write('foo\n')` + proc:write('foo\n')` Return: -- cgit v1.2.3