Skip to content

Commit 352daac

Browse files
himself65ruyadorno
authored andcommitted
doc: fix typo
PR-URL: #56125 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
1 parent 8c065dc commit 352daac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/changelogs/CHANGELOG_V22.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ When a `Buffer` is created using a resizable `ArrayBuffer`, the `Buffer` length
7979
```js
8080
const ab = new ArrayBuffer(10, { maxByteLength: 20 });
8181
const buffer = Buffer.from(ab);
82-
console.log(buffer.byteLength); 10
82+
console.log(buffer.byteLength); // 10
8383
ab.resize(15);
84-
console.log(buffer.byteLength); 15
84+
console.log(buffer.byteLength); // 15
8585
ab.resize(5);
86-
console.log(buffer.byteLength); 5
86+
console.log(buffer.byteLength); // 5
8787
```
8888

8989
Contributed by James Snell in [#55377](https://github.com/nodejs/node/pull/55377)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy