diff options
author | Rich Trott <rtrott@gmail.com> | 2019-10-23 21:28:42 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-10-26 08:39:41 -0700 |
commit | 10040500da6af33b602e35c3f3bbe28cf76c4c4a (patch) | |
tree | 69c2af94709de9ef7022c41423c0f618eb0d5e0a /doc/api/report.md | |
parent | 6858c7e3e7c30986d68a683d3d5e4ede4c0b529f (diff) | |
download | android-node-v8-10040500da6af33b602e35c3f3bbe28cf76c4c4a.tar.gz android-node-v8-10040500da6af33b602e35c3f3bbe28cf76c4c4a.tar.bz2 android-node-v8-10040500da6af33b602e35c3f3bbe28cf76c4c4a.zip |
doc: remove dashes
The use of dashes -- in general, but especially in our docs -- can be
problematic. It is used inconsistently and there is always another form
of punctuation that is as good or better for the situation. In an effort
to reduce the number of variations we use to display the same types of
information, remove the various uses of dashes from the documentation.
PR-URL: https://github.com/nodejs/node/pull/30101
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/report.md')
-rw-r--r-- | doc/api/report.md | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/doc/api/report.md b/doc/api/report.md index d08de8636a..b39a528639 100644 --- a/doc/api/report.md +++ b/doc/api/report.md @@ -445,11 +445,11 @@ the name of a file into which the report is written. process.report.writeReport('./foo.json'); ``` -This function takes an optional additional argument `err` - an `Error` object -that will be used as the context for the JavaScript stack printed in the report. -When using report to handle errors in a callback or an exception handler, this -allows the report to include the location of the original error as well -as where it was handled. +This function takes an optional additional argument `err` which is an `Error` +object that will be used as the context for the JavaScript stack printed in the +report. When using report to handle errors in a callback or an exception +handler, this allows the report to include the location of the original error as +well as where it was handled. ```js try { @@ -483,8 +483,9 @@ console.log(typeof report === 'object'); // true console.log(JSON.stringify(report, null, 2)); ``` -This function takes an optional additional argument `err` - an `Error` object -that will be used as the context for the JavaScript stack printed in the report. +This function takes an optional additional argument `err`, which is an `Error` +object that will be used as the context for the JavaScript stack printed in the +report. ```js const report = process.report.getReport(new Error('custom error')); |