1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-04 17:43:02 +00:00

Fix #566 - bad docstring and bad arity for net/flush.

This commit is contained in:
Calvin Rose
2021-01-10 12:02:28 -06:00
parent 4625c28e6a
commit 1f6d0d342b
2 changed files with 5 additions and 5 deletions

View File

@@ -591,7 +591,7 @@ static Janet cfun_stream_send_to(int32_t argc, Janet *argv) {
}
static Janet cfun_stream_flush(int32_t argc, Janet *argv) {
janet_fixarity(argc, 2);
janet_fixarity(argc, 1);
JanetStream *stream = janet_getabstract(argv, 0, &janet_stream_type);
janet_stream_flags(stream, JANET_STREAM_WRITABLE | JANET_STREAM_SOCKET);
/* Toggle no delay flag */