diff options
author | Rich Trott <rtrott@gmail.com> | 2018-10-08 19:48:50 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-10-10 20:11:27 -0700 |
commit | 09a8ff3fd629c707264fb432bcf6cc13faa81258 (patch) | |
tree | a19642ae1fb948288aafd7ad69c2a9741e561719 /doc/api/process.md | |
parent | 623206c2d6e7bb1cb35afeafd457cecedf0b7c3d (diff) | |
download | android-node-v8-09a8ff3fd629c707264fb432bcf6cc13faa81258.tar.gz android-node-v8-09a8ff3fd629c707264fb432bcf6cc13faa81258.tar.bz2 android-node-v8-09a8ff3fd629c707264fb432bcf6cc13faa81258.zip |
doc: edit for minor fixes to prcoess.md
Remove use of personal pronoun _you_ from formal documentation for
`process`. Fix up grammar in nearby text.
PR-URL: https://github.com/nodejs/node/pull/23347
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Diffstat (limited to 'doc/api/process.md')
-rw-r--r-- | doc/api/process.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/process.md b/doc/api/process.md index 5139ad95d8..2eac116058 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -114,7 +114,7 @@ The `'multipleResolves'` event is emitted whenever a `Promise` has been either: * Rejected after resolve. * Resolved after reject. -This is useful for tracking errors in your application while using the promise +This is useful for tracking errors in an application while using the promise constructor. Otherwise such mistakes are silently swallowed due to being in a dead zone. @@ -207,9 +207,9 @@ exception bubbles all the way back to the event loop. By default, Node.js handles such exceptions by printing the stack trace to `stderr` and exiting with code 1, overriding any previously set [`process.exitCode`][]. Adding a handler for the `'uncaughtException'` event overrides this default -behavior. You may also change the [`process.exitCode`][] in -`'uncaughtException'` handler which will result in process exiting with -provided exit code, otherwise in the presence of such handler the process will +behavior. Alternatively, change the [`process.exitCode`][] in the +`'uncaughtException'` handler which will result in the process exiting with the +provided exit code. Otherwise, in the presence of such handler the process will exit with 0. The listener function is called with the `Error` object passed as the only |