Skip to content

Commit

Permalink
doc: update async_hooks.md
Browse files Browse the repository at this point in the history
Typo `runAndReturn` -> `runSyncAndReturn`

PR-URL: #32382
Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Doc999tor authored and MylesBorins committed Mar 26, 2020
1 parent 6693b40 commit 3e002c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/async_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ added: v13.10.0

This method returns the current store.
If this method is called outside of an asynchronous context initialized by
calling `asyncLocalStorage.run` or `asyncLocalStorage.runAndReturn`, it will
calling `asyncLocalStorage.run` or `asyncLocalStorage.runSyncAndReturn`, it will
return `undefined`.

### `asyncLocalStorage.enterWith(store)`
Expand Down

0 comments on commit 3e002c3

Please sign in to comment.