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