Skip to content

Commit c6d74ac

Browse files
Trottjoesepi
authored andcommitted
doc: replace "you should do X" with "do X"
PR-URL: nodejs#35194 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 39e300c commit c6d74ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/async_hooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,14 +1173,14 @@ functions called by `foo`. Outside of `run`, calling `getStore` will return
11731173

11741174
In most cases your application or library code should have no issues with
11751175
`AsyncLocalStorage`. But in rare cases you may face situations when the
1176-
current store is lost in one of asynchronous operations. Then you should
1176+
current store is lost in one of asynchronous operations. In those cases,
11771177
consider the following options.
11781178

11791179
If your code is callback-based, it is enough to promisify it with
11801180
[`util.promisify()`][], so it starts working with native promises.
11811181

11821182
If you need to keep using callback-based API, or your code assumes
1183-
a custom thenable implementation, you should use [`AsyncResource`][] class
1183+
a custom thenable implementation, use the [`AsyncResource`][] class
11841184
to associate the asynchronous operation with the correct execution context.
11851185

11861186
[`AsyncResource`]: #async_hooks_class_asyncresource

0 commit comments

Comments
 (0)