Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2019-03-30 21:33:25 +0300
committerBeth Griggs <Bethany.Griggs@uk.ibm.com>2019-04-10 17:30:25 +0300
commit5fdee114a0f864e7fb3dd2ab67dcfbe67b0697a2 (patch)
treefdf7b0e28fffde00f70a92b3eec00649b421709a
parent054cf7beffa8297dafac4af31ed598184ae62622 (diff)
doc: remove description duplication in buffer.md
PR-URL: https://github.com/nodejs/node/pull/27030 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Signed-off-by: Beth Griggs <Bethany.Griggs@uk.ibm.com>
-rw-r--r--doc/api/buffer.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/buffer.md b/doc/api/buffer.md
index f5e5dd2f765..fb99c70b196 100644
--- a/doc/api/buffer.md
+++ b/doc/api/buffer.md
@@ -530,7 +530,7 @@ console.log(buf);
// Prints: <Buffer 00 00 00 00 00>
```
-Allocates a new `Buffer` of `size` bytes. If `size` is larger than
+If `size` is larger than
[`buffer.constants.MAX_LENGTH`] or smaller than 0, [`ERR_INVALID_OPT_VALUE`] is
thrown. A zero-length `Buffer` is created if `size` is 0.