diff options
author | Victor <doc999tor@gmail.com> | 2020-03-20 05:19:20 +0300 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2020-03-26 17:20:49 +0300 |
commit | afb5639119c91afc8c6f5c078468fe6f7775f8a2 (patch) | |
tree | 26c91c91a1c3987c00497b637af84905629f66a7 | |
parent | a621608f12988fac81d63043f4d147850d57c4c2 (diff) |
doc: update async_hooks.md
Typo `runAndReturn` -> `runSyncAndReturn`
PR-URL: https://github.com/nodejs/node/pull/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>
-rw-r--r-- | doc/api/async_hooks.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/async_hooks.md b/doc/api/async_hooks.md index 2d4fc0498b0..37354ce3864 100644 --- a/doc/api/async_hooks.md +++ b/doc/api/async_hooks.md @@ -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)` |