Skip to content

Commit 066cefb

Browse files
TrottMyles Borins
authored and
Myles Borins
committed
doc: improve usage of zero/0
PR-URL: #7466 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Bryan English <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent a488892 commit 066cefb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/api/http.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ a listener for the `'listening'` event. See also [`net.Server.listen(path)`][].
540540
Begin accepting connections on the specified `port` and `hostname`. If the
541541
`hostname` is omitted, the server will accept connections on any IPv6 address
542542
(`::`) when IPv6 is available, or any IPv4 address (`0.0.0.0`) otherwise. Use a
543-
port value of zero to have the operating system assign an available port.
543+
port value of `0` to have the operating system assign an available port.
544544

545545
To listen to a unix socket, supply a filename instead of port and hostname.
546546

doc/api/process.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ code without properly recovering from the exception can cause additional
123123
unforeseen and unpredictable issues.
124124

125125
Exceptions thrown from within the event handler will not be caught. Instead the
126-
process will exit with a non zero exit code and the stack trace will be printed.
126+
process will exit with a non-zero exit code and the stack trace will be printed.
127127
This is to avoid infinite recursion.
128128

129129
Attempting to resume normally after an uncaught exception can be similar to

0 commit comments

Comments
 (0)