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); ```