diff options
author | def <dennis@felsin9.de> | 2015-03-17 22:24:12 +0100 |
---|---|---|
committer | def <dennis@felsin9.de> | 2015-03-17 22:24:12 +0100 |
commit | ee9499ac89e8e86f43637e49a84d1a2a753c0227 (patch) | |
tree | 6cac5ca6fa8e0193d25fc0ae9b430ae379c2d8f8 /lib/pure | |
parent | 2410e667bcea042f4f851b903eac3398e9cc4bf9 (diff) | |
download | Nim-ee9499ac89e8e86f43637e49a84d1a2a753c0227.tar.gz |
Some style cleanup
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/asyncnet.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pure/asyncnet.nim b/lib/pure/asyncnet.nim index 840435aa4..fa67b212a 100644 --- a/lib/pure/asyncnet.nim +++ b/lib/pure/asyncnet.nim @@ -295,7 +295,7 @@ else: return retFuture template readInto(buf: cstring, size: int, socket: AsyncSocket, - flags: set[SocketFlag]): int = + flags: set[SocketFlag]): int = ## Reads **up to** ``size`` bytes from ``socket`` into ``buf``. Note that ## this is a template and not a proc. var res = 0 @@ -420,7 +420,7 @@ proc accept*(socket: AsyncSocket, return retFut proc recvLineInto*(socket: AsyncSocket, resString: ptr string, - flags = {SocketFlag.SafeDisconn}): Future[void] {.async.} = + flags = {SocketFlag.SafeDisconn}) {.async.} = ## Reads a line of data from ``socket`` into ``resString``. ## ## If a full line is read ``\r\L`` is not @@ -490,7 +490,7 @@ proc recvLineInto*(socket: AsyncSocket, resString: ptr string, elif c == "\L": addNLIfEmpty() return - add(resString[], c) + resString[].add c proc recvLine*(socket: AsyncSocket, flags = {SocketFlag.SafeDisconn}): Future[string] {.async.} = |