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 danielleadams committed Feb 27, 2022
1 parent 4850e5d commit 6b1a074
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 6b1a074

Please sign in to comment.