From 1e1a583903486b0b801fd978bebbbd51f64314f2 Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Sun, 21 Jul 2013 14:51:25 +0100 Subject: [PATCH] Fixes problems with async docs. --- lib/pure/asyncio.nim | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/pure/asyncio.nim b/lib/pure/asyncio.nim index 473d46a76..fb3b55eff 100644 --- a/lib/pure/asyncio.nim +++ b/lib/pure/asyncio.nim @@ -1067,12 +1067,13 @@ macro async*(n: stmt): stmt {.immediate.} = # ---- Async macro end -proc send*(socket: PAsyncSocket, text: string) {.async.} = - ## Sends ``text`` to ``socket`` asynchronously. +when defined(nimdoc): + proc send*(socket: PAsyncSocket, text: string) {.async.} = + ## Sends ``text`` to ``socket`` asynchronously. -proc accept*(socket: PAsyncSocket): PAsyncSocket {.async.} = - ## Accepts a client connecting to a server socket asynchronously. - ## Returns that client. + proc accept*(socket: PAsyncSocket): PAsyncSocket {.async.} = + ## Accepts a client connecting to a server socket asynchronously. + ## Returns that client. when isMainModule: