doc: fix async_hooks example in api docs

PR-URL: https://github.com/nodejs/node/pull/41609
Reviewed-By: Qingyu Deng <i@ayase-lab.com>
Reviewed-By: Mestery <mestery@protonmail.com>
This commit is contained in:
akhil marsonya authored and GitHub committed 2022-01-21 02:37:21 +00:00
1 parent 10b043287c
commit ef35175527
1 file changed
+1 -1
+1 -1
View File
@@ -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(() => {