summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2018-07-30 13:44:38 +0100
committerGitHub <noreply@github.com>2018-07-30 13:44:38 +0100
commit52807287a467dc26c7332e2574703484c02c2dba (patch)
treef34544f04c4ba1ff9eaf906d4098268d5c8d8f7d
parentc0f78ec0121c2578759e1b7cff561b75a58e3f97 (diff)
parente11d52a4e8e3b7522a26721f604692691a5fbeca (diff)
downloadNim-52807287a467dc26c7332e2574703484c02c2dba.tar.gz
Merge pull request #8476 from euantorano/patch-1
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