From d8933f37f0cf62813fb3b49466779a29aa164363 Mon Sep 17 00:00:00 2001 From: Sarath Date: Tue, 27 Jan 2015 18:49:28 +0530 Subject: [PATCH] Documentation update about Buffer initialization fixes #7230 Reviewed-By: James M Snell PR-URL: https://github.com/joyent/node/pull/25565 --- doc/api/buffer.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/buffer.markdown b/doc/api/buffer.markdown index 49619a6e0722..f9107f787412 100644 --- a/doc/api/buffer.markdown +++ b/doc/api/buffer.markdown @@ -64,7 +64,7 @@ It can be constructed in a variety of ways. Allocates a new buffer of `size` octets. Note, `size` must be no more than [kMaxLength](smalloc.html#smalloc_smalloc_kmaxlength). Otherwise, a `RangeError` -will be thrown here. +will be thrown here. 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. ### new Buffer(array)