diff options
author | Michael Dawson <mdawson@devrus.com> | 2022-01-21 23:14:44 +0300 |
---|---|---|
committer | Michael Dawson <mdawson@devrus.com> | 2022-01-25 19:39:23 +0300 |
commit | a2dead41710d374d0e30fcf23cc92c3a1daced84 (patch) | |
tree | f15c76e66e950dd119552baf4157c6a41a842016 /doc/api/n-api.md | |
parent | e2e2bc83c01b19a6601a3018d1790fbd2d4fa7de (diff) |
doc: clarify parameter for napi_get_cb_info
Refs: https://github.com/nodejs/help/issues/3698
Signed-off-by: Michael Dawson <mdawson@devrus.com>
PR-URL: https://github.com/nodejs/node/pull/41635
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'doc/api/n-api.md')
-rw-r--r-- | doc/api/n-api.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/n-api.md b/doc/api/n-api.md index e7b061cf079..5b3ae5a567d 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 |