Skip to content

Commit 2fe23af

Browse files
authored
doc: fix typo in buffer.md
"Buffers" -> "Buffer's" in `Buffer` documentation. PR-URL: #58052 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 3a19a71 commit 2fe23af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/buffer.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ the characters.
239239
changes:
240240
- version: v3.0.0
241241
pr-url: https://github.com/nodejs/node/pull/2002
242-
description: The `Buffer`s class now inherits from `Uint8Array`.
242+
description: The `Buffer` class now inherits from `Uint8Array`.
243243
-->
244244

245245
`Buffer` instances are also JavaScript {Uint8Array} and {TypedArray}
@@ -260,7 +260,7 @@ In particular:
260260

261261
There are two ways to create new {TypedArray} instances from a `Buffer`:
262262

263-
* Passing a `Buffer` to a {TypedArray} constructor will copy the `Buffer`s
263+
* Passing a `Buffer` to a {TypedArray} constructor will copy the `Buffer`'s
264264
contents, interpreted as an array of integers, and not as a byte sequence
265265
of the target type.
266266

@@ -286,7 +286,7 @@ console.log(uint32array);
286286
// Prints: Uint32Array(4) [ 1, 2, 3, 4 ]
287287
```
288288

289-
* Passing the `Buffer`s underlying {ArrayBuffer} will create a
289+
* Passing the `Buffer`'s underlying {ArrayBuffer} will create a
290290
{TypedArray} that shares its memory with the `Buffer`.
291291

292292
```mjs
@@ -1585,7 +1585,7 @@ console.log(buffer.buffer === arrayBuffer);
15851585

15861586
### `buf.byteOffset`
15871587

1588-
* {integer} The `byteOffset` of the `Buffer`s underlying `ArrayBuffer` object.
1588+
* {integer} The `byteOffset` of the `Buffer`'s underlying `ArrayBuffer` object.
15891589

15901590
When setting `byteOffset` in `Buffer.from(ArrayBuffer, byteOffset, length)`,
15911591
or sometimes when allocating a `Buffer` smaller than `Buffer.poolSize`, the

0 commit comments

Comments
 (0)