summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorMathias Stearn <redbeard0531@gmail.com>2018-04-28 18:06:11 -0400
committerAndreas Rumpf <rumpf_a@web.de>2018-05-09 17:42:16 +0200
commit9048bcc54b5fe8d0ae8c24b9cf7454cfa897ce5a (patch)
treec9dde28d0d516ad5d0282766cc0ec44461abcef7 /lib/pure
parentaf591544c59e9b05e539f4583f1143776bb8a9e4 (diff)
downloadNim-9048bcc54b5fe8d0ae8c24b9cf7454cfa897ce5a.tar.gz
Add connectUnix and bindUnix to net docs
fixes #7715
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/net.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/net.nim b/lib/pure/net.nim
index 06bf12665..fc04ef1af 100644
--- a/lib/pure/net.nim
+++ b/lib/pure/net.nim
@@ -960,7 +960,7 @@ when defined(posix) and not defined(nimdoc):
       raise newException(ValueError, "socket path too long")
     copyMem(addr result.sun_path, path.cstring, path.len + 1)
 
-when defined(posix):
+when defined(posix) or defined(nimdoc):
   proc connectUnix*(socket: Socket, path: string) =
     ## Connects to Unix socket on `path`.
     ## This only works on Unix-style systems: Mac OS X, BSD and Linux