Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 66f2c60

Browse filesBrowse files
chocolateboyaduh95
authored andcommitted
doc: fix typo in buffer.md
"Buffers" -> "Buffer's" in `Buffer` documentation. PR-URL: #58052 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 3e58f81 commit 66f2c60
Copy full SHA for 66f2c60

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎doc/api/buffer.md

Copy file name to clipboardExpand all lines: doc/api/buffer.md
+4-4Lines changed: 4 additions & 4 deletions
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
@@ -1584,7 +1584,7 @@ console.log(buffer.buffer === arrayBuffer);
15841584

15851585
### `buf.byteOffset`
15861586

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

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.