Skip to content

Commit ca4b2f6

Browse files
TrottMylesBorins
authored andcommitted
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: #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>
1 parent bb1e97c commit ca4b2f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/dgram.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@ boolean `reuseAddr` field.
413413

414414
When `reuseAddr` is `true` [`socket.bind()`][] will reuse the address, even if
415415
another process has already bound a socket on it. `reuseAddr` defaults to
416-
`false`. An optional `callback` function can be passed specified which is added
417-
as a listener for `'message'` events.
416+
`false`. The optional `callback` function is added as a listener for `'message'`
417+
events.
418418

419419
Once the socket is created, calling [`socket.bind()`][] will instruct the
420420
socket to begin listening for datagram messages. When `address` and `port` are

0 commit comments

Comments
 (0)