diff options
author | Zestyr <zestyr@protonmail.com> | 2019-05-07 01:28:33 +0200 |
---|---|---|
committer | Zestyr <zestyr@protonmail.com> | 2019-05-07 01:28:33 +0200 |
commit | a06038be3f5e204a2877face839789e2bef71c0f (patch) | |
tree | 5e670792163dcdb0c615e7fb44ba7bc38c5df14c | |
parent | 7804b5c55888717b35432c2670f4eef23afd583a (diff) | |
download | Nim-a06038be3f5e204a2877face839789e2bef71c0f.tar.gz |
Update outdated ETimeout exception name
-rw-r--r-- | lib/pure/net.nim | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/pure/net.nim b/lib/pure/net.nim index f55d5d900..69a221a6c 100644 --- a/lib/pure/net.nim +++ b/lib/pure/net.nim @@ -1083,7 +1083,7 @@ proc waitFor(socket: Socket, waited: var float, timeout, size: int, ## For buffered sockets it can be as big as ``BufferSize``. ## ## If this function does not determine that there is data on the socket - ## within ``timeout`` ms, an ETimeout error will be raised. + ## within ``timeout`` ms, a TimeoutError error will be raised. result = 1 if size <= 0: assert false if timeout == -1: return size @@ -1138,7 +1138,7 @@ proc recv*(socket: Socket, data: var string, size: int, timeout = -1, ## lower than 0 is never returned. ## ## A timeout may be specified in milliseconds, if enough data is not received - ## within the time specified an TimeoutError exception will be raised. + ## within the time specified a TimeoutError exception will be raised. ## ## **Note**: ``data`` must be initialised. ## @@ -1165,7 +1165,7 @@ proc recv*(socket: Socket, size: int, timeout = -1, ## This function will throw an OSError exception when an error occurs. ## ## A timeout may be specified in milliseconds, if enough data is not received - ## within the time specified an ETimeout exception will be raised. + ## within the time specified a TimeoutError exception will be raised. ## ## ## **Warning**: Only the ``SafeDisconn`` flag is currently supported. @@ -1206,7 +1206,7 @@ proc readLine*(socket: Socket, line: var TaintedString, timeout = -1, ## An OSError exception will be raised in the case of a socket error. ## ## A timeout can be specified in milliseconds, if data is not received within - ## the specified time an ETimeout exception will be raised. + ## the specified time a TimeoutError exception will be raised. ## ## The ``maxLength`` parameter determines the maximum amount of characters ## that can be read. The result is truncated after that. @@ -1261,7 +1261,7 @@ proc recvLine*(socket: Socket, timeout = -1, ## An OSError exception will be raised in the case of a socket error. ## ## A timeout can be specified in milliseconds, if data is not received within - ## the specified time an ETimeout exception will be raised. + ## the specified time a TimeoutError exception will be raised. ## ## The ``maxLength`` parameter determines the maximum amount of characters ## that can be read. The result is truncated after that. @@ -1303,7 +1303,7 @@ proc skip*(socket: Socket, size: int, timeout = -1) = ## Skips ``size`` amount of bytes. ## ## An optional timeout can be specified in milliseconds, if skipping the - ## bytes takes longer than specified an ETimeout exception will be raised. + ## bytes takes longer than specified a TimeoutError exception will be raised. ## ## Returns the number of skipped bytes. var waited = 0.0 |