Skip to content

Commit 06daf52

Browse files
tlhunterBethGriggs
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 bf95392 commit 06daf52

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
@@ -337,7 +337,7 @@ the error is emitted as an `'error'` event on the `socket` object.
337337
Offset and length are optional but both *must* be set if either are used.
338338
They are supported only when the first argument is a `Buffer` or `Uint8Array`.
339339

340-
Example of sending a UDP packet to a random port on `localhost`;
340+
Example of sending a UDP packet to a port on `localhost`;
341341

342342
```js
343343
const dgram = require('dgram');
@@ -348,8 +348,8 @@ client.send(message, 41234, 'localhost', (err) => {
348348
});
349349
```
350350

351-
Example of sending a UDP packet composed of multiple buffers to a random port
352-
on `127.0.0.1`;
351+
Example of sending a UDP packet composed of multiple buffers to a port on
352+
`127.0.0.1`;
353353

354354
```js
355355
const dgram = require('dgram');

0 commit comments

Comments
 (0)