diff options
author | Thomas Hunter II <tom@intrinsic.com> | 2018-03-26 15:10:45 -0700 |
---|---|---|
committer | Beth Griggs <Bethany.Griggs@uk.ibm.com> | 2018-12-04 11:51:57 +0000 |
commit | 06daf5276f5f7750a4a2133f281a29c687df9f7a (patch) | |
tree | fdd42e9b0064fd7d92886fe5016d1fb27e3358cd | |
parent | bf95392e86fec7c804ab7ce3c9fcb968e9bf1601 (diff) | |
download | node-new-06daf5276f5f7750a4a2133f281a29c687df9f7a.tar.gz |
doc: remove use of "random port" re dgram send
PR-URL: https://github.com/nodejs/node/pull/19620
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
-rw-r--r-- | doc/api/dgram.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/dgram.md b/doc/api/dgram.md index 353013da3c..38d0ac9886 100644 --- a/doc/api/dgram.md +++ b/doc/api/dgram.md @@ -337,7 +337,7 @@ the error is emitted as an `'error'` event on the `socket` object. Offset and length are optional but both *must* be set if either are used. They are supported only when the first argument is a `Buffer` or `Uint8Array`. -Example of sending a UDP packet to a random port on `localhost`; +Example of sending a UDP packet to a port on `localhost`; ```js const dgram = require('dgram'); @@ -348,8 +348,8 @@ client.send(message, 41234, 'localhost', (err) => { }); ``` -Example of sending a UDP packet composed of multiple buffers to a random port -on `127.0.0.1`; +Example of sending a UDP packet composed of multiple buffers to a port on +`127.0.0.1`; ```js const dgram = require('dgram'); |