From afcc273b5a6df1c0d5420913722dbb7cfedc971a Mon Sep 17 00:00:00 2001 From: simon3000 Date: Mon, 1 Apr 2019 07:26:56 +0800 Subject: [PATCH] doc: buffer, prints should go under the code --- doc/api/buffer.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index e28d42bb7d756a..f5e5dd2f765538 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -281,13 +281,13 @@ function: ```js const buf = Buffer.from([1, 2, 3]); +for (const b of buf) { + console.log(b); +} // Prints: // 1 // 2 // 3 -for (const b of buf) { - console.log(b); -} ``` Additionally, the [`buf.values()`], [`buf.keys()`], and