Skip to content

Commit

Permalink
doc: fix typo in worker_threads.md
Browse files Browse the repository at this point in the history
"Buffer.alloc()" -> "Buffer.allocUnsafe()"
  • Loading branch information
takayama-lily committed Apr 23, 2021
1 parent f9e07e4 commit 9ed0b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/worker_threads.md
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ Depending on how a `Buffer` instance was created, it may or may
not own its underlying `ArrayBuffer`. An `ArrayBuffer` must not
be transferred unless it is known that the `Buffer` instance
owns it. In particular, for `Buffer`s created from the internal
`Buffer` pool (using, for instance `Buffer.from()` or `Buffer.alloc()`),
`Buffer` pool (using, for instance `Buffer.from()` or `Buffer.allocUnsafe()`),
transferring them is not possible and they are always cloned,
which sends a copy of the entire `Buffer` pool.
This behavior may come with unintended higher memory
Expand Down

0 comments on commit 9ed0b23

Please sign in to comment.