Skip to content

Commit e54ee54

Browse files
committed
doc(async_hooks): fix imports in context example
1 parent e817ba7 commit e54ee54

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/async_hooks.md

+3
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,9 @@ callback to `listen()` will look like. The output formatting is slightly more
428428
elaborate to make calling context easier to see.
429429

430430
```js
431+
const async_hooks = require('async_hooks');
432+
const fs = require('fs');
433+
const net = require('net');
431434
const { fd } = process.stdout;
432435

433436
let indent = 0;

0 commit comments

Comments
 (0)