Browse Source

doc: fix typo in dgram doc

There is a typographical error in the dgram documentation. Reword to
eliminate the error and increase clarity.

PR-URL: https://github.com/nodejs/node/pull/11186
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
v6
Rich Trott 8 years ago
parent
commit
ef977cf8a0
  1. 4
      doc/api/dgram.md

4
doc/api/dgram.md

@ -448,8 +448,8 @@ boolean `reuseAddr` field.
When `reuseAddr` is `true` [`socket.bind()`][] will reuse the address, even if When `reuseAddr` is `true` [`socket.bind()`][] will reuse the address, even if
another process has already bound a socket on it. `reuseAddr` defaults to another process has already bound a socket on it. `reuseAddr` defaults to
`false`. An optional `callback` function can be passed specified which is added `false`. The optional `callback` function is added as a listener for `'message'`
as a listener for `'message'` events. events.
Once the socket is created, calling [`socket.bind()`][] will instruct the Once the socket is created, calling [`socket.bind()`][] will instruct the
socket to begin listening for datagram messages. When `address` and `port` are socket to begin listening for datagram messages. When `address` and `port` are

Loading…
Cancel
Save