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 committed Jan 21, 2022
1 parent 10b0432 commit ef35175
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 ef35175

Please sign in to comment.