Skip to content

Commit aeaf96d

Browse files
mertcanaltinUlisesGascon
authored andcommitted
doc: fix Buffer.allocUnsafe documentation
PR-URL: #50686 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent 93085cf commit aeaf96d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/buffer.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -808,8 +808,8 @@ A `TypeError` will be thrown if `size` is not a number.
808808
The `Buffer` module pre-allocates an internal `Buffer` instance of
809809
size [`Buffer.poolSize`][] that is used as a pool for the fast allocation of new
810810
`Buffer` instances created using [`Buffer.allocUnsafe()`][], [`Buffer.from(array)`][],
811-
and [`Buffer.concat()`][] only when `size` is less than or equal to
812-
`Buffer.poolSize >> 1` (floor of [`Buffer.poolSize`][] divided by two).
811+
and [`Buffer.concat()`][] only when `size` is less than
812+
`Buffer.poolSize >>> 1` (floor of [`Buffer.poolSize`][] divided by two).
813813

814814
Use of this pre-allocated internal memory pool is a key difference between
815815
calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`.

0 commit comments

Comments
 (0)