From 9af2862a8bf53392c425ceef5eed2cd68be86e9f 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 e7b061cf079e57..5b3ae5a567d0b6 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -4710,7 +4710,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