summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorThomas Hunter II <tom@intrinsic.com>2018-03-26 15:10:45 -0700
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2018-03-27 03:35:41 +0300
commitcdfe47b323b8f8b495c23f65b6570021eea16239 (patch)
treedb1bdf62bf981a4bd676fc1f57cc261624cb72fb /doc
parent6572f63afb515730543b80783274e9cf8ea886e6 (diff)
downloadandroid-node-v8-cdfe47b323b8f8b495c23f65b6570021eea16239.tar.gz
android-node-v8-cdfe47b323b8f8b495c23f65b6570021eea16239.tar.bz2
android-node-v8-cdfe47b323b8f8b495c23f65b6570021eea16239.zip
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>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/dgram.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/dgram.md b/doc/api/dgram.md
index 9209b83a12..32c8eee49f 100644
--- a/doc/api/dgram.md
+++ b/doc/api/dgram.md
@@ -319,7 +319,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');
@@ -330,8 +330,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');