summaryrefslogtreecommitdiff
path: root/doc/api/report.md
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2019-10-23 21:28:42 -0700
committerRich Trott <rtrott@gmail.com>2019-10-26 08:39:41 -0700
commit10040500da6af33b602e35c3f3bbe28cf76c4c4a (patch)
tree69c2af94709de9ef7022c41423c0f618eb0d5e0a /doc/api/report.md
parent6858c7e3e7c30986d68a683d3d5e4ede4c0b529f (diff)
downloadandroid-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.md15
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'));