summaryrefslogtreecommitdiff
path: root/doc/api/async_hooks.md
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2018-08-26 19:02:27 +0300
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2018-08-29 16:53:03 +0300
commit1a25f9639a9668d8ea90022b0f3d3b47d29971b6 (patch)
treeceba486d64311f7d40be3ad57db6bb217f9213fa /doc/api/async_hooks.md
parentb2f0cfa6b0e139a2f990d4e1e7104abf015fe8e7 (diff)
downloadandroid-node-v8-1a25f9639a9668d8ea90022b0f3d3b47d29971b6.tar.gz
android-node-v8-1a25f9639a9668d8ea90022b0f3d3b47d29971b6.tar.bz2
android-node-v8-1a25f9639a9668d8ea90022b0f3d3b47d29971b6.zip
doc: remove redundant 'Example:' and similar notes
Some nits were also fixed in passing. PR-URL: https://github.com/nodejs/node/pull/22537 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/async_hooks.md')
-rw-r--r--doc/api/async_hooks.md4
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/api/async_hooks.md b/doc/api/async_hooks.md
index b390753176..4003fb1b02 100644
--- a/doc/api/async_hooks.md
+++ b/doc/api/async_hooks.md
@@ -534,8 +534,6 @@ expensive nature of the [promise introspection API][PromiseHooks] provided by
V8. This means that programs using promises or `async`/`await` will not get
correct execution and trigger ids for promise callback contexts by default.
-Here's an example:
-
```js
const ah = require('async_hooks');
Promise.resolve(1729).then(() => {
@@ -551,7 +549,7 @@ the `triggerAsyncId` value is `0`, which means that we are missing context about
the resource that caused (triggered) the `then()` callback to be executed.
Installing async hooks via `async_hooks.createHook` enables promise execution
-tracking. Example:
+tracking:
```js
const ah = require('async_hooks');