summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorEuan T <euantorano@users.noreply.github.com>2018-07-30 13:39:32 +0100
committerGitHub <noreply@github.com>2018-07-30 13:39:32 +0100
commite11d52a4e8e3b7522a26721f604692691a5fbeca (patch)
treef34544f04c4ba1ff9eaf906d4098268d5c8d8f7d
parentc0f78ec0121c2578759e1b7cff561b75a58e3f97 (diff)
downloadNim-e11d52a4e8e3b7522a26721f604692691a5fbeca.tar.gz
Update example code for UDP sockets
-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 5d2efebee..771e7de10 100644
--- a/lib/pure/net.nim
+++ b/lib/pure/net.nim
@@ -41,7 +41,7 @@
 ## immediately.
 ##
 ## .. code-block:: Nim
-##   var socket = newSocket()
+##   var socket = newSocket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)
 ##   socket.sendTo("192.168.0.1", Port(27960), "status\n")
 ##
 ## Creating a server