diff --git a/doc/env.md b/doc/env.md index 9842de6bb..456cfda73 100644 --- a/doc/env.md +++ b/doc/env.md @@ -138,7 +138,7 @@ template CleanupHook 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 @@ -156,7 +156,7 @@ template CleanupHook 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`.