From 364811aa8ab703f8a73688aba03e5d02d5b24e8b Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Fri, 21 Jan 2022 15:14:44 -0500 Subject: [PATCH] doc: clarify parameter for napi_get_cb_info MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs: https://github.com/nodejs/help/issues/3698 Signed-off-by: Michael Dawson PR-URL: https://github.com/nodejs/node/pull/41635 Reviewed-By: Tobias Nießen Reviewed-By: Benjamin Gruenbaum --- 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 b75233de32899d..9aab850b8b7ce0 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -4678,7 +4678,7 @@ napi_status napi_get_cb_info(napi_env env, * `[in-out] argc`: Specifies the length of the provided `argv` array and receives the actual count of arguments. `argc` can optionally be ignored by passing `NULL`. -* `[out] argv`: Buffer to which the `napi_value` representing the arguments are +* `[out] argv`: C array of `napi_value`s to which the arguments will be copied. If there are more arguments than the provided count, only the requested number of arguments are copied. If there are fewer arguments provided than claimed, the rest of `argv` is filled with `napi_value` values