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

Address #618 - clarify file/open docs.

This commit is contained in:
Calvin Rose 2021-01-31 08:39:57 -06:00
parent c63fe6ef8a
commit c9ea3ac304

View File

@ -746,6 +746,7 @@ static const JanetReg io_cfuns[] = {
"* r - allow reading from the file\n\n" "* r - allow reading from the file\n\n"
"* w - allow writing to the file\n\n" "* w - allow writing to the file\n\n"
"* a - append to the file\n\n" "* a - append to the file\n\n"
"Following one fo the initial flags, 0 or more of the following flags can be appended:\n\n"
"* b - open the file in binary mode (rather than text mode)\n\n" "* b - open the file in binary mode (rather than text mode)\n\n"
"* + - append to the file instead of overwriting it\n\n" "* + - append to the file instead of overwriting it\n\n"
"* n - error if the file cannot be opened instead of returning nil") "* n - error if the file cannot be opened instead of returning nil")