Skip to content

Commit d562a7c

Browse files
shubhamsharma088danielleadams
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 4c69be4 commit d562a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/async_context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ calls the function passed to it within the captured context.
165165

166166
```js
167167
const asyncLocalStorage = new AsyncLocalStorage();
168-
const runInAsyncScope = asyncLocalStorage.run(123, () => asyncLocalStorage.snapshot());
168+
const runInAsyncScope = asyncLocalStorage.run(123, () => AsyncLocalStorage.snapshot());
169169
const result = asyncLocalStorage.run(321, () => runInAsyncScope(() => asyncLocalStorage.getStore()));
170170
console.log(result); // returns 123
171171
```

0 commit comments

Comments
 (0)