Skip to content

Commit

Permalink
Fix exits/exists typo in docs for Env::AddCleanupHook() (#1306)
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBeard0531 authored Apr 5, 2023
1 parent 164459c commit d9faac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/env.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ template <typename Hook>
CleanupHook<Hook> AddCleanupHook(Hook hook);
```
- `[in] hook`: A function to call when the environment exists. Accepts a
- `[in] hook`: A function to call when the environment exits. Accepts a
function of the form `void ()`.
Registers `hook` as a function to be run once the current Node.js environment
Expand All @@ -156,7 +156,7 @@ template <typename Hook, typename Arg>
CleanupHook<Hook, Arg> AddCleanupHook(Hook hook, Arg* arg);
```

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

Expand Down

0 comments on commit d9faac7

Please sign in to comment.