From aa9a60321c741a0bf58baa7574e8c75d0d3f3bcb Mon Sep 17 00:00:00 2001 From: Shubham Sharma Date: Sat, 18 Mar 2023 22:13:40 +0000 Subject: [PATCH] doc: fix typos in async_context.md --- doc/api/async_context.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/async_context.md b/doc/api/async_context.md index 9da66ff0372541..7e456aa9be1b03 100644 --- a/doc/api/async_context.md +++ b/doc/api/async_context.md @@ -167,7 +167,7 @@ calls the function passed to it within the captured context. ```js const asyncLocalStorage = new AsyncLocalStorage(); -const runInAsyncScope = asyncLocalStorage.run(123, () => asyncLocalStorage.snapshot()); +const runInAsyncScope = asyncLocalStorage.run(123, () => AsyncLocalStorage.snapshot()); const result = asyncLocalStorage.run(321, () => runInAsyncScope(() => asyncLocalStorage.getStore())); console.log(result); // returns 123 ```