Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/api/async_hooks.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/async_hooks.md b/doc/api/async_hooks.md
index 851b3fe3a90..02bb9d3001b 100644
--- a/doc/api/async_hooks.md
+++ b/doc/api/async_hooks.md
@@ -374,14 +374,14 @@ net.createServer((conn) => {}).listen(8080);
```cjs
const { createHook, executionAsyncId } = require('async_hooks');
-const { fd } = require('process').stdout;
+const { stdout } = require('process');
const net = require('net');
createHook({
init(asyncId, type, triggerAsyncId) {
const eid = executionAsyncId();
fs.writeSync(
- fd,
+ stdout.fd,
`${type}(${asyncId}): trigger: ${triggerAsyncId} execution: ${eid}\n`);
}
}).enable();