From 9338312103422cb5e3e8973055e72ede0b1e34b5 Mon Sep 17 00:00:00 2001 From: sogaiu <983021772@users.noreply.github.com> Date: Mon, 2 Dec 2024 11:21:56 +0900 Subject: [PATCH] Additional tweak to address #1523 --- src/core/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/net.c b/src/core/net.c index e59b1f54..69e891fc 100644 --- a/src/core/net.c +++ b/src/core/net.c @@ -844,7 +844,7 @@ JANET_CORE_FN(cfun_stream_read, "Read up to n bytes from a stream, suspending the current fiber until the bytes are available. " "`n` can also be the keyword `:all` to read into the buffer until end of stream. " "If less than n bytes are available (and more than 0), will push those bytes and return early. " - "Takes an optional timeout in seconds, after which will return nil. " + "Takes an optional timeout in seconds, after which will raise an error. " "Returns a buffer with up to n more bytes in it, or raises an error if the read failed.") { janet_arity(argc, 2, 4); JanetStream *stream = janet_getabstract(argv, 0, &janet_stream_type);