diff --git a/doc/api/http.md b/doc/api/http.md index b7a9c1960f9f1c..3ea67e7ac27efa 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -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. diff --git a/doc/api/process.md b/doc/api/process.md index eb14cc7158e019..f4a31a85806e1c 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -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