diff options
author | simon3000 <simon300000@users.noreply.github.com> | 2019-04-01 07:26:56 +0800 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2019-04-01 23:24:46 +0300 |
commit | c6faf5b64ece3281dbef9c6efb381ace3b6698ae (patch) | |
tree | c7ea911b44c7614d4c45f24540fdd71444e59e88 /doc/api/buffer.md | |
parent | 6eae41480bb8944684f345e4ce82c8333e884a2f (diff) | |
download | android-node-v8-c6faf5b64ece3281dbef9c6efb381ace3b6698ae.tar.gz android-node-v8-c6faf5b64ece3281dbef9c6efb381ace3b6698ae.tar.bz2 android-node-v8-c6faf5b64ece3281dbef9c6efb381ace3b6698ae.zip |
doc: move "Prints: ..." under the code
PR-URL: https://github.com/nodejs/node/pull/27035
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'doc/api/buffer.md')
-rw-r--r-- | doc/api/buffer.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/buffer.md b/doc/api/buffer.md index e28d42bb7d..f5e5dd2f76 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 |