From 81d33e24c33d56f42f89f0f11bfa3d31fefec239 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Mon, 29 Jun 2020 15:10:31 -0700 Subject: [PATCH] doc: fix entry for `napi_create_external_buffer` Remove text regarding copying, because `napi_create_external_buffer` does not copy. Fixes: https://github.com/nodejs/node/issues/33471 --- doc/api/n-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/n-api.md b/doc/api/n-api.md index a621d38e49b541..e240663eb259a8 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -2055,7 +2055,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