Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8936302

Browse filesBrowse 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 <thechargingvolcano@gmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
1 parent e955f9a commit 8936302
Copy full SHA for 8936302

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎doc/api/buffer.markdown‎

Copy file name to clipboardExpand all lines: doc/api/buffer.markdown
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.