summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2017-11-07 17:23:53 +0000
committerGitHub <noreply@github.com>2017-11-07 17:23:53 +0000
commitf221c192b3779a50b51d7ba22431e0d06ab0edc1 (patch)
tree45e6ec7f8eadf5acba22fd94ccaafd38ef5e0987
parent686a2aaefacf2e72a6f114d6bb728b87624fba08 (diff)
downloadNim-f221c192b3779a50b51d7ba22431e0d06ab0edc1.tar.gz
Fix creating server example in net module
-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 a405ce1bd..b8d05642b 100644
--- a/lib/pure/net.nim
+++ b/lib/pure/net.nim
@@ -58,7 +58,7 @@
 ## You can then begin accepting connections using the ``accept`` procedure.
 ##
 ## .. code-block:: Nim
-##   var client = newSocket()
+##   var client = new Socket
 ##   var address = ""
 ##   while true:
 ##     socket.acceptAddr(client, address)