Skip to content

Commit

Permalink
doc: remove use of "random port" re dgram send
Browse files Browse the repository at this point in the history
PR-URL: #19620
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Vse Mozhet Byt <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
tlhunter authored and BethGriggs committed Dec 4, 2018
1 parent bf95392 commit 06daf52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/dgram.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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');
Expand Down

0 comments on commit 06daf52

Please sign in to comment.