Skip to content

Commit 86272ca

Browse files
marsonyaBethGriggs
authored andcommitted
doc: fix async_hooks example in api docs
PR-URL: #41609 Reviewed-By: Qingyu Deng <[email protected]> Reviewed-By: Mestery <[email protected]>
1 parent 506a0dd commit 86272ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎doc/api/async_hooks.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ Promise.resolve(1729).then(() =>{
816816
```
817817
818818
```cjs
819-
const{createHook, exectionAsyncId, triggerAsyncId } =require('async_hooks');
819+
const{createHook, executionAsyncId, triggerAsyncId } =require('async_hooks');
820820

821821
createHook({init(){} }).enable(); // forces PromiseHooks to be enabled.
822822
Promise.resolve(1729).then(() =>{

0 commit comments

Comments
(0)