Skip to content

Commit

Permalink
doc: minor clarification in buffer.markdown
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ChALkeR authored and rvagg committed Aug 28, 2015
1 parent e955f9a commit 8936302
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/buffer.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ Allocates a new buffer of `size` bytes. `size` must be less than
otherwise a `RangeError` is thrown.

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

### new Buffer(array)

Expand Down

0 comments on commit 8936302

Please sign in to comment.