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: