Skip to content

Commit 2fadc9e

Browse files
Trotttargos
authored andcommitted
doc: fix run-on sentence in buffer.md
PR-URL: #19567 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
1 parent 962c581 commit 2fadc9e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

doc/api/buffer.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,10 @@ differently based on what arguments are provided:
6868
* Passing an [`ArrayBuffer`] or a [`SharedArrayBuffer`] returns a `Buffer` that
6969
shares allocated memory with the given array buffer.
7070

71-
Because the behavior of `new Buffer()` changes significantly based on the type
72-
of value passed as the first argument, applications that do not properly
73-
validate the input arguments passed to `new Buffer()`, or that fail to
74-
appropriately initialize newly allocated `Buffer` content, can inadvertently
75-
introduce security and reliability issues into their code.
71+
Because the behavior of `new Buffer()` is different depending on the type of the
72+
first argument, security and reliability issues can be inadvertantly introduced
73+
into applications when argument validation or `Buffer` initialization are not
74+
performed.
7675

7776
To make the creation of `Buffer` instances more reliable and less error prone,
7877
the various forms of the `new Buffer()` constructor have been **deprecated**

0 commit comments

Comments
 (0)