From a0c94cd924f378fc8b26ccb9c037f278f40a5301 Mon Sep 17 00:00:00 2001 From: Kyle Farnung Date: Thu, 21 Jun 2018 13:15:37 -0700 Subject: [PATCH] [squash] PR feedback --- doc/buffer.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/doc/buffer.md b/doc/buffer.md index 191e4f361..e37f7d980 100644 --- a/doc/buffer.md +++ b/doc/buffer.md @@ -41,7 +41,7 @@ Returns a new `Buffer` object. Wraps the provided external data into a new `Buffer` object. -The Bu`Buffer`ffer object does not assume ownership for the data and expects it +The `Buffer` object does not assume ownership for the data and expects it to be valid for the lifetime of the object. The data can only be freed once the `finalizeCallback` is invoked to indicate that the `Buffer` has been released. @@ -94,10 +94,6 @@ Returns a new `Buffer` object. Allocates a new `Buffer` object and copies the provided external data into it. -The `Buffer` object does not assume ownership for the data and expects it to be -valid for the duration of the `Copy` call. Once the call returns the data can be -freed. - ```cpp static Buffer Copy(napi_env env, const T* data, size_t length); ```