Skip to content

Commit 245dd62

Browse files
authored
doc: use nullish instead of falsy
Used nullish instead of falsy to point at that the parameter now only accepts a `string`, `null` or `undefined`.
1 parent dcf5535 commit 245dd62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/dgram.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ If `msg` is an array, `offset` and `length` must not be specified.
521521

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

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

0 commit comments

Comments
 (0)