From 7ec87fd5cef71a7d530397d1b14e90d02592487a Mon Sep 17 00:00:00 2001 From: Shubham Sharma Date: Mon, 20 Mar 2023 22:21:03 +0000 Subject: [PATCH] doc: fix typos in async_context.md PR-URL: https://github.com/nodejs/node/pull/47155 Reviewed-By: Debadree Chatterjee Reviewed-By: Luigi Pinca Reviewed-By: Deokjin Kim Reviewed-By: Harshitha K P Reviewed-By: Chengzhong Wu --- 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 bc5fc9004770b5..8223f2464bd341 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 ```