Skip to content

Commit 7c1db67

Browse files
authored
Merge pull request #1668 from sogaiu/tweak-file-write-docstring
Update file/write docstring
2 parents 1449ad8 + 4fa1a69 commit 7c1db67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/io.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,9 @@ JANET_CORE_FN(cfun_io_fread,
249249

250250
/* Write bytes to a file */
251251
JANET_CORE_FN(cfun_io_fwrite,
252-
"(file/write f bytes)",
253-
"Writes to a file. 'bytes' must be string, buffer, or symbol. Returns the "
254-
"file.") {
252+
"(file/write f & bytes)",
253+
"Writes to a file `f`. Each value of `bytes` must be a "
254+
"string, buffer, symbol, or keyword. Returns the file.") {
255255
janet_arity(argc, 1, -1);
256256
JanetFile *iof = janet_getabstract(argv, 0, &janet_file_type);
257257
if (iof->flags & JANET_FILE_CLOSED)

0 commit comments

Comments
 (0)