From 78e26526ac5cc6cd648cead3a9d932d57bdf5d6f Mon Sep 17 00:00:00 2001 From: Philipp Renoth Date: Sun, 6 Jan 2019 06:06:47 +0100 Subject: [PATCH] doc: fix `napi_open_callback_scope` description - parameter `resource_object` is mandatory PR-URL: https://github.com/nodejs/node/pull/25366 Reviewed-By: Michael Dawson --- doc/api/n-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/n-api.md b/doc/api/n-api.md index 4628d9e4bb9b2b..ee67636418a0c7 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -4059,7 +4059,7 @@ NAPI_EXTERN napi_status napi_open_callback_scope(napi_env env, napi_callback_scope* result) ``` - `[in] env`: The environment that the API is invoked under. -- `[in] resource_object`: An optional object associated with the async work +- `[in] resource_object`: An object associated with the async work that will be passed to possible `async_hooks` [`init` hooks][]. - `[in] context`: Context for the async operation that is invoking the callback. This should be a value previously obtained