From 1dd9662e2ba4934763ea764f2aede977c6c68339 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Sat, 30 Mar 2019 20:33:25 +0200 Subject: [PATCH] doc: remove description duplication in buffer.md PR-URL: https://github.com/nodejs/node/pull/27030 Reviewed-By: Luigi Pinca Reviewed-By: Ruben Bridgewater --- doc/api/buffer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: ``` -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.