Commit d226418
doc: suggest Buffer.alloc instead of Buffer#fill
Now that `Buffer.alloc` exists, there is no reason to recommend using
`new Buffer(size).fill(0)` or `Buffer.allocUnsafe(size).fill(0)`.
PR-URL: #10000
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>1 parent c0a2862 commit d226418Copy full SHA for d226418
File tree
Expand file treeCollapse file tree
1 file changed
+3
-3
lines changedOpen diff view settings
Filter options
- doc/api
Expand file treeCollapse file tree
1 file changed
+3
-3
lines changedOpen diff view settings
Collapse file
+3-3Lines changed: 3 additions & 3 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
398 | 398 | |
399 | 399 | |
400 | 400 | |
401 | | - |
402 | | - |
| 401 | + |
| 402 | + |
403 | 403 | |
404 | 404 | |
405 | 405 | |
| ||
517 | 517 | |
518 | 518 | |
519 | 519 | |
520 | | - |
| 520 | + |
521 | 521 | |
522 | 522 | |
523 | 523 | |
|
0 commit comments