Skip to content

Commit

Permalink
doc(async_hooks): fix imports in context example
Browse files Browse the repository at this point in the history
  • Loading branch information
yashLadha committed Jul 2, 2021
1 parent e817ba7 commit e54ee54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/api/async_hooks.md
Expand Up @@ -428,6 +428,9 @@ callback to `listen()` will look like. The output formatting is slightly more
elaborate to make calling context easier to see.

```js
const async_hooks = require('async_hooks');
const fs = require('fs');
const net = require('net');
const { fd } = process.stdout;

let indent = 0;
Expand Down

0 comments on commit e54ee54

Please sign in to comment.