Skip to content

Commit e533911

Browse files
tlhuntertargos
authored andcommitted
doc: remove use of "random port" re dgram send
PR-URL: #19620 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 3894981 commit e533911

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/dgram.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ the error is emitted as an `'error'` event on the `socket` object.
319319
Offset and length are optional but both *must* be set if either are used.
320320
They are supported only when the first argument is a `Buffer` or `Uint8Array`.
321321

322-
Example of sending a UDP packet to a random port on `localhost`;
322+
Example of sending a UDP packet to a port on `localhost`;
323323

324324
```js
325325
const dgram = require('dgram');
@@ -330,8 +330,8 @@ client.send(message, 41234, 'localhost', (err) => {
330330
});
331331
```
332332

333-
Example of sending a UDP packet composed of multiple buffers to a random port
334-
on `127.0.0.1`;
333+
Example of sending a UDP packet composed of multiple buffers to a port on
334+
`127.0.0.1`;
335335

336336
```js
337337
const dgram = require('dgram');

0 commit comments

Comments
 (0)