Skip to content

Commit

Permalink
doc: fix async_hooks example in api docs
Browse files Browse the repository at this point in the history
PR-URL: nodejs#41609
Reviewed-By: Qingyu Deng <i@ayase-lab.com>
Reviewed-By: Mestery <mestery@protonmail.com>
  • Loading branch information
marsonya authored and Linkgoron committed Jan 31, 2022
1 parent 49d862b commit 25277a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/async_hooks.md
Expand Up @@ -816,7 +816,7 @@ Promise.resolve(1729).then(() => {
```
```cjs
const { createHook, exectionAsyncId, triggerAsyncId } = require('async_hooks');
const { createHook, executionAsyncId, triggerAsyncId } = require('async_hooks');

createHook({ init() {} }).enable(); // forces PromiseHooks to be enabled.
Promise.resolve(1729).then(() => {
Expand Down

0 comments on commit 25277a4

Please sign in to comment.