Skip to content

Commit d6714ff

Browse files
committed
doc: minor clarification in buffer.markdown
Replaced "contents is" with "contents are". Added a note that initial Buffer contents could contain sensitive data. PR-URL: #2574 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
1 parent 87df7d3 commit d6714ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/buffer.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ Allocates a new buffer of `size` bytes. `size` must be less than
6868
otherwise a `RangeError` is thrown.
6969

7070
Unlike `ArrayBuffers`, the underlying memory for buffers is not initialized. So
71-
the contents of a newly created `Buffer` is unknown. Use `buf.fill(0)`to
72-
initialize a buffer to zeroes.
71+
the contents of a newly created `Buffer` are unknown and could contain
72+
sensitive data. Use `buf.fill(0)` to initialize a buffer to zeroes.
7373

7474
### new Buffer(array)
7575

0 commit comments

Comments
 (0)