Skip to content

Commit 25939cc

Browse files
Gabriel Schulhofaddaleax
authored andcommitted
doc: fix entry for napi_create_external_buffer
Remove text regarding copying, because `napi_create_external_buffer` does not copy. Fixes: #33471 PR-URL: #34125 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Mathias Buus <mathiasbuus@gmail.com> Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 5f131f7 commit 25939cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/n-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2038,7 +2038,7 @@ napi_status napi_create_external_buffer(napi_env env,
20382038
* `[in] env`: The environment that the API is invoked under.
20392039
* `[in] length`: Size in bytes of the input buffer (should be the same as the
20402040
size of the new buffer).
2041-
* `[in] data`: Raw pointer to the underlying buffer to copy from.
2041+
* `[in] data`: Raw pointer to the underlying buffer to expose to JavaScript.
20422042
* `[in] finalize_cb`: Optional callback to call when the `ArrayBuffer` is being
20432043
collected. [`napi_finalize`][] provides more details.
20442044
* `[in] finalize_hint`: Optional hint to pass to the finalize callback during

0 commit comments

Comments
 (0)