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: #41609
Reviewed-By: Qingyu Deng <[email protected]>
Reviewed-By: Mestery <[email protected]>
  • Loading branch information
marsonya authored and BethGriggs committed Jan 24, 2022
1 parent 506a0dd commit 86272ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/async_hooks.md
Original file line number Diff line number Diff line change
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 86272ca

Please sign in to comment.