Skip to content

Commit

Permalink
Update example code for UDP sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
euantorano authored Jul 30, 2018
1 parent c0f78ec commit e11d52a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/net.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e11d52a

Please sign in to comment.