From 94421b4cfeaa005c8215e21c17e601d27b6b9353 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 ff220375bb802d..37ac739f4345fb 100644 --- a/doc/api/webstreams.md +++ b/doc/api/webstreams.md @@ -627,7 +627,7 @@ added: v16.5.0 Returns the amount of data remaining to fill the {ReadableStream}'s queue. -#### `readableStreamDefaultController.enqueue(chunk)` +#### `readableStreamDefaultController.enqueue([chunk])`