-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: make minor improvements to paragraph in child_process.md #34063
Conversation
doc/api/child_process.md
Outdated
signal that terminated the process. Any exit code other than `0` is considered | ||
to be an error. | ||
the exit code of the process. Any exit code other than `0` indicates an | ||
error. `error.signal` will be the signal that terminated the process. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I liked the “is considered to be an error” phrasing, because it hints at the fact that exit code 0
= success is just a convention and we can’t know whether there actually has been an error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work?
By convention, any exit code other than `0` indicates an error.
My thinking is that this states plainly that it's a convention, whereas "is considered" only hints at that.
@nodejs/documentation |
Landed in 90d5f35 |
Use shorter and more direct phrasing. PR-URL: #34063 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Denys Otrishko <[email protected]>
Use shorter and more direct phrasing. PR-URL: #34063 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Denys Otrishko <[email protected]>
Use shorter and more direct phrasing. PR-URL: #34063 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Denys Otrishko <[email protected]>
Use shorter and more direct phrasing.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes