diff --git a/doc/api/async_context.md b/doc/api/async_context.md index c944d25d34ad56..137a84151f0da1 100644 --- a/doc/api/async_context.md +++ b/doc/api/async_context.md @@ -1,4 +1,4 @@ -# Asynchronous Context Tracking +# Asynchronous context tracking @@ -18,11 +18,11 @@ The `AsyncLocalStorage` and `AsyncResource` classes are part of the `async_hooks` module: ```mjs -import async_hooks from 'async_hooks'; +import { AsyncLocalStorage, AsyncResource } from 'async_hooks'; ``` ```cjs -const async_hooks = require('async_hooks'); +const { AsyncLocalStorage, AsyncResource } = require('async_hooks'); ``` ## Class: `AsyncLocalStorage` diff --git a/doc/api/index.md b/doc/api/index.md index 0e7bf073d2843c..7aba47edcb35af 100644 --- a/doc/api/index.md +++ b/doc/api/index.md @@ -11,7 +11,7 @@