Skip to content

Commit 25939cc

Browse files
Gabriel Schulhofaddaleax
Gabriel Schulhof
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 <[email protected]> Reviewed-By: Mathias Buus <[email protected]> Reviewed-By: Zeyu Yang <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: James M Snell <[email protected]>
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

+1-1
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)