From 49bae9792d9aff2235dc52ee2098bd0710e9c076 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Tue, 28 May 2019 20:12:00 +0300 Subject: [PATCH] Fix documentation for read(n) procedure. --- chronos/transports/stream.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chronos/transports/stream.nim b/chronos/transports/stream.nim index 4d2593e..e92bb91 100644 --- a/chronos/transports/stream.nim +++ b/chronos/transports/stream.nim @@ -1642,7 +1642,7 @@ proc readLine*(transp: StreamTransport, limit = 0, await fut proc read*(transp: StreamTransport, n = -1): Future[seq[byte]] {.async.} = - ## Read all bytes (n == -1) or exactly `n` bytes from transport ``transp``. + ## Read all bytes (n <= 0) or exactly `n` bytes from transport ``transp``. ## ## This procedure allocates buffer seq[byte] and return it as result. checkClosed(transp)