mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
doc: improve usage of zero/0
PR-URL: https://github.com/nodejs/node/pull/7466 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Bryan English <bryan@bryanenglish.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
a4888926a2
commit
066cefb6de
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -540,7 +540,7 @@ a listener for the `'listening'` event. See also [`net.Server.listen(path)`][].
|
||||
Begin accepting connections on the specified `port` and `hostname`. If the
|
||||
`hostname` is omitted, the server will accept connections on any IPv6 address
|
||||
(`::`) when IPv6 is available, or any IPv4 address (`0.0.0.0`) otherwise. Use a
|
||||
port value of zero to have the operating system assign an available port.
|
||||
port value of `0` to have the operating system assign an available port.
|
||||
|
||||
To listen to a unix socket, supply a filename instead of port and hostname.
|
||||
|
||||
|
||||
+1
-1
@@ -123,7 +123,7 @@ code without properly recovering from the exception can cause additional
|
||||
unforeseen and unpredictable issues.
|
||||
|
||||
Exceptions thrown from within the event handler will not be caught. Instead the
|
||||
process will exit with a non zero exit code and the stack trace will be printed.
|
||||
process will exit with a non-zero exit code and the stack trace will be printed.
|
||||
This is to avoid infinite recursion.
|
||||
|
||||
Attempting to resume normally after an uncaught exception can be similar to
|
||||
|
||||
Reference in new issue
Block a user