Skip to content

Commit

Permalink
[squash] PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarnung committed Jun 21, 2018
1 parent b16cf27 commit a0c94cd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions doc/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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<T> Copy(napi_env env, const T* data, size_t length);
```
Expand Down

0 comments on commit a0c94cd

Please sign in to comment.