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>
This commit is contained in:
parent
6eae41480b
commit
c6faf5b64e
@ -281,13 +281,13 @@ function:
|
|||||||
```js
|
```js
|
||||||
const buf = Buffer.from([1, 2, 3]);
|
const buf = Buffer.from([1, 2, 3]);
|
||||||
|
|
||||||
|
for (const b of buf) {
|
||||||
|
console.log(b);
|
||||||
|
}
|
||||||
// Prints:
|
// Prints:
|
||||||
// 1
|
// 1
|
||||||
// 2
|
// 2
|
||||||
// 3
|
// 3
|
||||||
for (const b of buf) {
|
|
||||||
console.log(b);
|
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Additionally, the [`buf.values()`], [`buf.keys()`], and
|
Additionally, the [`buf.values()`], [`buf.keys()`], and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user