diff --git a/doc/api/stream.md b/doc/api/stream.md index 43e5da5206b67e..6444df9f3fcec3 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -1771,7 +1771,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).map((x) => x * 2)) { } // With an asynchronous mapper, making at most 2 queries at a time. const resolver = new Resolver(); -const dnsResults = await Readable.from([ +const dnsResults = Readable.from([ 'nodejs.org', 'openjsf.org', 'www.linuxfoundation.org', @@ -1816,7 +1816,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).filter((x) => x > 2)) { } // With an asynchronous predicate, making at most 2 queries at a time. const resolver = new Resolver(); -const dnsResults = await Readable.from([ +const dnsResults = Readable.from([ 'nodejs.org', 'openjsf.org', 'www.linuxfoundation.org', @@ -1874,7 +1874,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).filter((x) => x > 2)) { } // With an asynchronous predicate, making at most 2 queries at a time. const resolver = new Resolver(); -const dnsResults = await Readable.from([ +const dnsResults = Readable.from([ 'nodejs.org', 'openjsf.org', 'www.linuxfoundation.org',