Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2019-10-24 07:28:42 +0300
committerRich Trott <rtrott@gmail.com>2019-10-26 18:39:41 +0300
commit10040500da6af33b602e35c3f3bbe28cf76c4c4a (patch)
tree69c2af94709de9ef7022c41423c0f618eb0d5e0a /doc/api/policy.md
parent6858c7e3e7c30986d68a683d3d5e4ede4c0b529f (diff)
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/policy.md')
-rw-r--r--doc/api/policy.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/api/policy.md b/doc/api/policy.md
index f6e7e828501..bf4cc214552 100644
--- a/doc/api/policy.md
+++ b/doc/api/policy.md
@@ -56,10 +56,11 @@ It is possible to change the error behavior to one of a few possibilities
by defining an "onerror" field in a policy manifest. The following values are
available to change the behavior:
-* `"exit"` - will exit the process immediately.
+* `"exit"`: will exit the process immediately.
No cleanup code will be allowed to run.
-* `"log"` - will log the error at the site of the failure.
-* `"throw"` (default) - will throw a JS error at the site of the failure.
+* `"log"`: will log the error at the site of the failure.
+* `"throw"`: will throw a JS error at the site of the failure. This is the
+ default.
```json
{