From 419ec3384ac332d035623d93a36994ca24a6d41b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20St=C3=B6r?= Date: Wed, 1 Feb 2017 18:12:56 +0100 Subject: [PATCH] Add two small fixes --- docs/en/modules/net.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/en/modules/net.md b/docs/en/modules/net.md index 6537f0a7..17f4e023 100644 --- a/docs/en/modules/net.md +++ b/docs/en/modules/net.md @@ -78,7 +78,7 @@ Creates an UDP socket. none #### Returns -net.udpsocket sub module +[net.udpsocket sub module](#netudpsocket-module) #### See also [`net.createConnection()`](#netcreateconnection) @@ -442,10 +442,10 @@ The syntax and functional similar to [`net.server:listen()`](#netserverlisten), Register callback functions for specific events. -The syntax and functional similar to [`net.socket:on()`](#netsocketon). However, only "received", "sent" and "dns" are supported events. +The syntax and functional similar to [`net.socket:on()`](#netsocketon). However, only "receive", "sent" and "dns" are supported events. !!! note - The `received` callback receives `port` and `ip` *after* the `data` argument. + The `receive` callback receives `port` and `ip` *after* the `data` argument. ## net.udpsocket:send()