From d6714ff1a48de5dcd9d3dfbb4b2e036efcd92b7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=BA=D0=BE=D0=B2=D0=BE=D1=80=D0=BE=D0=B4=D0=B0=20?= =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=90=D0=BD=D0=B4=D1=80?= =?UTF-8?q?=D0=B5=D0=B5=D0=B2=D0=B8=D1=87?= Date: Thu, 27 Aug 2015 11:52:03 +0300 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/2574 Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Trevor Norris --- doc/api/buffer.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/buffer.markdown b/doc/api/buffer.markdown index ea46332d31c631..f1e6e52660d5b3 100644 --- a/doc/api/buffer.markdown +++ b/doc/api/buffer.markdown @@ -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)