diff --git a/doc/api/webstreams.md b/doc/api/webstreams.md index 3c94158b0ce6be..7fd3cb71ed7f01 100644 --- a/doc/api/webstreams.md +++ b/doc/api/webstreams.md @@ -451,7 +451,7 @@ async function* asyncIterableGenerator() { const stream = ReadableStream.from(asyncIterableGenerator()); -stream.pipeTo(createWritableStreamSomehow()); +await stream.pipeTo(createWritableStreamSomehow()); ``` ```cjs