Skip to content

Commit 8936302

Browse files
ChALkeRrvagg
authored andcommitted
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 <[email protected]> Reviewed-By: Trevor Norris <[email protected]>
1 parent e955f9a commit 8936302

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)