Skip to content

Commit c4b790b

Browse files
simon300000BethGriggs
authored andcommitted
doc: move "Prints: ..." under the code
PR-URL: #27035 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Signed-off-by: Beth Griggs <Bethany.Griggs@uk.ibm.com>
1 parent 0f08a8e commit c4b790b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/buffer.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,13 @@ function:
281281
```js
282282
const buf = Buffer.from([1, 2, 3]);
283283

284+
for (const b of buf) {
285+
console.log(b);
286+
}
284287
// Prints:
285288
// 1
286289
// 2
287290
// 3
288-
for (const b of buf) {
289-
console.log(b);
290-
}
291291
```
292292

293293
Additionally, the [`buf.values()`], [`buf.keys()`], and

0 commit comments

Comments
 (0)