Skip to content

Commit d9faac7

Browse files
authored
Fix exits/exists typo in docs for Env::AddCleanupHook() (#1306)
1 parent 164459c commit d9faac7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/env.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ template <typename Hook>
138138
CleanupHook<Hook> AddCleanupHook(Hook hook);
139139
```
140140
141-
- `[in] hook`: A function to call when the environment exists. Accepts a
141+
- `[in] hook`: A function to call when the environment exits. Accepts a
142142
function of the form `void ()`.
143143
144144
Registers `hook` as a function to be run once the current Node.js environment
@@ -156,7 +156,7 @@ template <typename Hook, typename Arg>
156156
CleanupHook<Hook, Arg> AddCleanupHook(Hook hook, Arg* arg);
157157
```
158158

159-
- `[in] hook`: A function to call when the environment exists. Accepts a
159+
- `[in] hook`: A function to call when the environment exits. Accepts a
160160
function of the form `void (Arg* arg)`.
161161
- `[in] arg`: A pointer to data that will be passed as the argument to `hook`.
162162

0 commit comments

Comments
 (0)