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>2020-06-15 00:49:34 +0300
committerRich Trott <rtrott@gmail.com>2020-06-19 18:09:05 +0300
commitd1d412b413d2f8febb1795459ff04c36c9c87f2c (patch)
treefeeb2d25788a98693c3bf23975d163a67827091e /doc/api/domain.md
parent9918bdf5cb07f58d230522244a372cbb1b510956 (diff)
doc: use sentence-case for headings in docs
PR-URL: https://github.com/nodejs/node/pull/33889 Refs: https://developers.google.com/style/capitalization#capitalization-in-titles-and-headings Refs: https://docs.microsoft.com/en-us/style-guide/capitalization Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/domain.md')
-rw-r--r--doc/api/domain.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/api/domain.md b/doc/api/domain.md
index fa3aef66b98..b9219fbb4d7 100644
--- a/doc/api/domain.md
+++ b/doc/api/domain.md
@@ -30,7 +30,7 @@ will be notified, rather than losing the context of the error in the
`process.on('uncaughtException')` handler, or causing the program to
exit immediately with an error code.
-## Warning: Don't Ignore Errors!
+## Warning: Don't ignore errors!
<!-- type=misc -->
@@ -199,7 +199,7 @@ are added to it.
* `error.domainThrown` A boolean indicating whether the error was
thrown, emitted, or passed to a bound callback function.
-## Implicit Binding
+## Implicit binding
<!--type=misc-->
@@ -225,7 +225,7 @@ Implicit binding routes thrown errors and `'error'` events to the
`Domain`.
Implicit binding only takes care of thrown errors and `'error'` events.
-## Explicit Binding
+## Explicit binding
<!--type=misc-->
@@ -432,9 +432,9 @@ d.run(() => {
In this example, the `d.on('error')` handler will be triggered, rather
than crashing the program.
-## Domains and Promises
+## Domains and promises
-As of Node.js 8.0.0, the handlers of Promises are run inside the domain in
+As of Node.js 8.0.0, the handlers of promises are run inside the domain in
which the call to `.then()` or `.catch()` itself was made:
```js
@@ -472,7 +472,7 @@ d2.run(() => {
```
Domains will not interfere with the error handling mechanisms for
-Promises. In other words, no `'error'` event will be emitted for unhandled
+promises. In other words, no `'error'` event will be emitted for unhandled
`Promise` rejections.
[`Error`]: errors.html#errors_class_error