From 958e27df12c617bdc1cef2677fbf8251631116db Mon Sep 17 00:00:00 2001 From: Duncan Date: Sun, 15 Dec 2024 16:56:39 -0500 Subject: [PATCH] buffer: document concat zero-fill MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/55562 Reviewed-By: Luigi Pinca Reviewed-By: Ruben Bridgewater Reviewed-By: Ulises Gascón Reviewed-By: James M Snell Reviewed-By: Jason Zhang --- doc/api/buffer.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index aac57fc86666e6..6a0faa481dd07b 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -1041,7 +1041,8 @@ in `list` by adding their lengths. If `totalLength` is provided, it is coerced to an unsigned integer. If the combined length of the `Buffer`s in `list` exceeds `totalLength`, the result is -truncated to `totalLength`. +truncated to `totalLength`. If the combined length of the `Buffer`s in `list` is +less than `totalLength`, the remaining space is filled with zeros. ```mjs import { Buffer } from 'node:buffer';