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 <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>
  • Loading branch information
Gabriel Schulhof authored and MylesBorins committed Jul 16, 2020
1 parent 167a21a commit e818455
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 e818455

Please sign in to comment.