Skip to content

Commit 9b6947d

Browse files
committed
improve wording
1 parent 40dea65 commit 9b6947d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doc/api/buffer.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,7 @@ added: v5.10.0
14291429
* `...items` {integer} A sequence of numeric byte values (0–255).
14301430
* Returns: {Buffer}
14311431

1432-
Allocates a new `Buffer` from the given numeric arguments.
1432+
Creates a new `Buffer` from the given numeric arguments.
14331433

14341434
This is equivalent to the standard `TypedArray.of()` factory, but returns a
14351435
`Buffer` instead of a generic `Uint8Array`. Each argument provides the value of
@@ -1447,9 +1447,8 @@ const { Buffer } = require('node:buffer');
14471447
const buf = Buffer.of(0x62, 0x75, 0x66, 0x66, 0x65, 0x72);
14481448
```
14491449

1450-
`Buffer.of(...items)` and [`Buffer.from(string)`][] may also use the internal
1451-
`Buffer` pool like [`Buffer.allocUnsafe()`][] does when the resulting size is
1452-
less than half of [`Buffer.poolSize`][].
1450+
[`Buffer.of(...items)`][] may also use the internal `Buffer` pool like
1451+
[`Buffer.allocUnsafe()`][] does.
14531452

14541453
### Static method: `Buffer.isBuffer(obj)`
14551454

0 commit comments

Comments
 (0)