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 targos committed Mar 27, 2018
1 parent 3894981 commit e533911
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 @@ -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');
Expand All @@ -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');
Expand Down

0 comments on commit e533911

Please sign in to comment.