From be813515f5072d6d8fa1bbef770063451eaf1ee4 Mon Sep 17 00:00:00 2001 From: Mathias Stearn Date: Wed, 5 Apr 2023 15:53:10 +0200 Subject: [PATCH] Fix exits/exists typo in docs for Env::AddCleanupHook() --- doc/env.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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`.