From 2a24e763d5d9d2a3e58a1b2e64e035807943b8b9 Mon Sep 17 00:00:00 2001 From: Yash Ladha <18033231+yashLadha@users.noreply.github.com> Date: Thu, 3 Feb 2022 18:00:36 +0530 Subject: [PATCH] async_hooks: fix imports in context example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added imports for packages that is mentioned in the example of async_hooks context example. PR-URL: https://github.com/nodejs/node/pull/39229 Reviewed-By: James M Snell Reviewed-By: Michaël Zasso Reviewed-By: Gerhard Stöbich --- doc/api/async_hooks.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/api/async_hooks.md b/doc/api/async_hooks.md index b74d52c5f8bcc5..54bfbaccdaef29 100644 --- a/doc/api/async_hooks.md +++ b/doc/api/async_hooks.md @@ -433,6 +433,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;