Skip to content

Commit

Permalink
doc: use nullish instead of falsy
Browse files Browse the repository at this point in the history
Used nullish instead of falsy to point at that
the parameter now only accepts a `string`,
`null` or `undefined`.
  • Loading branch information
VoltrexKeyva committed Jul 31, 2021
1 parent edf28c7 commit 79469a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/dgram.md
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ If `msg` is an array, `offset` and `length` must not be specified.

The `address` argument is a string. If the value of `address` is a host name,
DNS will be used to resolve the address of the host. If `address` is not
provided or otherwise falsy, `'127.0.0.1'` (for `udp4` sockets) or `'::1'`
provided or otherwise nullish, `'127.0.0.1'` (for `udp4` sockets) or `'::1'`
(for `udp6` sockets) will be used by default.

If the socket has not been previously bound with a call to `bind`, the socket
Expand Down

0 comments on commit 79469a0

Please sign in to comment.