1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-25 09:47:17 +00:00

Expand docs to explain pclose semantics.

This commit is contained in:
Andrew Chambers 2019-12-28 15:21:48 +13:00
parent da93a73dbd
commit ddc4274314

View File

@ -604,7 +604,8 @@ static const JanetReg io_cfuns[] = {
JDOC("(file/close f)\n\n" JDOC("(file/close f)\n\n"
"Close a file and release all related resources. When you are " "Close a file and release all related resources. When you are "
"done reading a file, close it to prevent a resource leak and let " "done reading a file, close it to prevent a resource leak and let "
"other processes read the file.") "other processes read the file. If the file is the result of a file/popen "
"call, close waits for and returns the process exit status.")
}, },
{ {
"file/read", cfun_io_fread, "file/read", cfun_io_fread,