Skip to content

Commit 7ec87fd

Browse files
shubhamsharma088RafaelGSS
authored andcommitted
doc: fix typos in async_context.md
PR-URL: #47155 Reviewed-By: Debadree Chatterjee <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Deokjin Kim <[email protected]> Reviewed-By: Harshitha K P <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
1 parent e3d98c3 commit 7ec87fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/async_context.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ calls the function passed to it within the captured context.
167167

168168
```js
169169
const asyncLocalStorage = new AsyncLocalStorage();
170-
const runInAsyncScope = asyncLocalStorage.run(123, () => asyncLocalStorage.snapshot());
170+
const runInAsyncScope = asyncLocalStorage.run(123, () => AsyncLocalStorage.snapshot());
171171
const result = asyncLocalStorage.run(321, () => runInAsyncScope(() => asyncLocalStorage.getStore()));
172172
console.log(result); // returns 123
173173
```

0 commit comments

Comments
 (0)