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 authored Jun 30, 2021
1 parent dcf5535 commit 245dd62
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 245dd62

Please sign in to comment.