Fixes problems with async docs.

This commit is contained in:
Dominik Picheta 2013-07-21 14:51:25 +01:00
commit 1e1a583903

View file

@ -1067,12 +1067,13 @@ macro async*(n: stmt): stmt {.immediate.} =
# ---- Async macro end # ---- Async macro end
proc send*(socket: PAsyncSocket, text: string) {.async.} = when defined(nimdoc):
## Sends ``text`` to ``socket`` asynchronously. proc send*(socket: PAsyncSocket, text: string) {.async.} =
## Sends ``text`` to ``socket`` asynchronously.
proc accept*(socket: PAsyncSocket): PAsyncSocket {.async.} = proc accept*(socket: PAsyncSocket): PAsyncSocket {.async.} =
## Accepts a client connecting to a server socket asynchronously. ## Accepts a client connecting to a server socket asynchronously.
## Returns that client. ## Returns that client.
when isMainModule: when isMainModule: