From c6faf5b64ece3281dbef9c6efb381ace3b6698ae Mon Sep 17 00:00:00 2001 From: simon3000 Date: Mon, 1 Apr 2019 07:26:56 +0800 Subject: [PATCH] doc: move "Prints: ..." under the code PR-URL: https://github.com/nodejs/node/pull/27035 Reviewed-By: Vse Mozhet Byt Reviewed-By: Luigi Pinca Reviewed-By: Ruben Bridgewater --- 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