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 jasnell committed Jul 3, 2020
1 parent d853145 commit cfa3d8f
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 @@ -2054,7 +2054,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 cfa3d8f

Please sign in to comment.