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 <i@ayase-lab.com>
Reviewed-By: Mestery <mestery@protonmail.com>
  • Loading branch information
marsonya authored and danielleadams committed Mar 14, 2022
1 parent 1d3ef11 commit 5d94bc6
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 5d94bc6

Please sign in to comment.