Skip to content

Commit db8b524

Browse files
Trottjasnell
authored andcommitted
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: #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>
1 parent 927878e commit db8b524

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/process.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ The `'multipleResolves'` event is emitted whenever a `Promise` has been either:
114114
* Rejected after resolve.
115115
* Resolved after reject.
116116

117-
This is useful for tracking errors in your application while using the promise
117+
This is useful for tracking errors in an application while using the promise
118118
constructor. Otherwise such mistakes are silently swallowed due to being in a
119119
dead zone.
120120

@@ -207,9 +207,9 @@ exception bubbles all the way back to the event loop. By default, Node.js
207207
handles such exceptions by printing the stack trace to `stderr` and exiting
208208
with code 1, overriding any previously set [`process.exitCode`][].
209209
Adding a handler for the `'uncaughtException'` event overrides this default
210-
behavior. You may also change the [`process.exitCode`][] in
211-
`'uncaughtException'` handler which will result in process exiting with
212-
provided exit code, otherwise in the presence of such handler the process will
210+
behavior. Alternatively, change the [`process.exitCode`][] in the
211+
`'uncaughtException'` handler which will result in the process exiting with the
212+
provided exit code. Otherwise, in the presence of such handler the process will
213213
exit with 0.
214214

215215
The listener function is called with the `Error` object passed as the only

0 commit comments

Comments
 (0)