Skip to content

Commit

Permalink
doc: fix entry for napi_create_external_buffer
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Gabriel Schulhof authored and MylesBorins committed Jul 14, 2020
1 parent f17c1d0 commit f723958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2051,7 +2051,7 @@ napi_status napi_create_external_buffer(napi_env env,
* `[in] env`: The environment that the API is invoked under.
* `[in] length`: Size in bytes of the input buffer (should be the same as the
size of the new buffer).
* `[in] data`: Raw pointer to the underlying buffer to copy from.
* `[in] data`: Raw pointer to the underlying buffer to expose to JavaScript.
* `[in] finalize_cb`: Optional callback to call when the `ArrayBuffer` is being
collected. [`napi_finalize`][] provides more details.
* `[in] finalize_hint`: Optional hint to pass to the finalize callback during
Expand Down

0 comments on commit f723958

Please sign in to comment.