From 73a127ba7b4c2ed404b9cd7ad926331e2e0eca0b Mon Sep 17 00:00:00 2001 From: m3m0ry Date: Wed, 15 Sep 2021 23:10:29 +0800 Subject: [PATCH] doc: fix buffer api example code's token error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Buffer's Blob api example code has some token error PR-URL: https://github.com/nodejs/node/pull/40125 Reviewed-By: Qingyu Deng Reviewed-By: Luigi Pinca Reviewed-By: Tobias Nießen Reviewed-By: James M Snell --- doc/api/buffer.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 483265f385961d..41d2cd89cb7ed0 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -574,7 +574,7 @@ mc1.port2.postMessage(blob); mc2.port2.postMessage(blob); // The Blob is still usable after posting. -data.text().then(console.log); +blob.text().then(console.log); ``` ```cjs @@ -601,7 +601,7 @@ mc1.port2.postMessage(blob); mc2.port2.postMessage(blob); // The Blob is still usable after posting. -data.text().then(console.log); +blob.text().then(console.log); ``` ## Class: `Buffer`