From ae120dbfd5e32058f4d136f6b56fa936fac4c305 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 23 Mar 2018 15:02:35 -0700 Subject: [PATCH] doc: fix run-on sentence in buffer.md PR-URL: https://github.com/nodejs/node/pull/19567 Reviewed-By: Vse Mozhet Byt Reviewed-By: Trivikram Kamat Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Gibson Fahnestock --- doc/api/buffer.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 72c7c67b743830..2897a32f969baa 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -68,11 +68,10 @@ differently based on what arguments are provided: * Passing an [`ArrayBuffer`] or a [`SharedArrayBuffer`] returns a `Buffer` that shares allocated memory with the given array buffer. -Because the behavior of `new Buffer()` changes significantly based on the type -of value passed as the first argument, applications that do not properly -validate the input arguments passed to `new Buffer()`, or that fail to -appropriately initialize newly allocated `Buffer` content, can inadvertently -introduce security and reliability issues into their code. +Because the behavior of `new Buffer()` is different depending on the type of the +first argument, security and reliability issues can be inadvertantly introduced +into applications when argument validation or `Buffer` initialization are not +performed. To make the creation of `Buffer` instances more reliable and less error prone, the various forms of the `new Buffer()` constructor have been **deprecated**