From 64fdfa953d23aae7b6b20a9b8dfe3da6e008660d Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Tue, 3 Dec 2024 18:35:30 -0800 Subject: [PATCH] doc: fix typo PR-URL: https://github.com/nodejs/node/pull/56125 Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau --- doc/changelogs/CHANGELOG_V22.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/changelogs/CHANGELOG_V22.md b/doc/changelogs/CHANGELOG_V22.md index d077dca501b914..6840381aad25eb 100644 --- a/doc/changelogs/CHANGELOG_V22.md +++ b/doc/changelogs/CHANGELOG_V22.md @@ -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)