From 05296d92467319b0a33d2ef5e80a19be630153cf Mon Sep 17 00:00:00 2001 From: Deokjin Kim Date: Sat, 21 Jan 2023 20:03:10 +0900 Subject: [PATCH] doc: mark some parameters as optional in webstreams Some parameters are described as optional in spec, so update mismatched parameter. Refs: https://streams.spec.whatwg.org/ PR-URL: https://github.com/nodejs/node/pull/46269 Refs: https://streams.spec.whatwg.org/ Reviewed-By: Antoine du Hamel Reviewed-By: Luigi Pinca --- doc/api/webstreams.md | 8 ++++---- lib/internal/webstreams/readablestream.js | 10 +++++----- lib/internal/webstreams/writablestream.js | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/api/webstreams.md b/doc/api/webstreams.md index f4d757464467bb..5bb79b9f156ff1 100644 --- a/doc/api/webstreams.md +++ b/doc/api/webstreams.md @@ -629,7 +629,7 @@ added: v16.5.0 Returns the amount of data remaining to fill the {ReadableStream}'s queue. -#### `readableStreamDefaultController.enqueue(chunk)` +#### `readableStreamDefaultController.enqueue([chunk])`