Skip to content

Commit

Permalink
doc: fix typo
Browse files Browse the repository at this point in the history
PR-URL: #56125
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
  • Loading branch information
himself65 authored and aduh95 committed Dec 13, 2024
1 parent 802601c commit 64fdfa9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/changelogs/CHANGELOG_V22.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ When a `Buffer` is created using a resizable `ArrayBuffer`, the `Buffer` length
```js
const ab = new ArrayBuffer(10, { maxByteLength: 20 });
const buffer = Buffer.from(ab);
console.log(buffer.byteLength); 10
console.log(buffer.byteLength); // 10
ab.resize(15);
console.log(buffer.byteLength); 15
console.log(buffer.byteLength); // 15
ab.resize(5);
console.log(buffer.byteLength); 5
console.log(buffer.byteLength); // 5
```

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

0 comments on commit 64fdfa9

Please sign in to comment.