diff --git a/doc/api/stream.md b/doc/api/stream.md index 84228ebc27816e..ab4e4ce30a6e9e 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -2237,7 +2237,7 @@ const anyBigFile = await Readable.from([ 'file3', ]).some(async (fileName) => { const stats = await stat(fileName); - return stat.size > 1024 * 1024; + return stats.size > 1024 * 1024; }, { concurrency: 2 }); console.log(anyBigFile); // `true` if any file in the list is bigger than 1MB console.log('done'); // Stream has finished @@ -2289,7 +2289,7 @@ const foundBigFile = await Readable.from([ 'file3', ]).find(async (fileName) => { const stats = await stat(fileName); - return stat.size > 1024 * 1024; + return stats.size > 1024 * 1024; }, { concurrency: 2 }); console.log(foundBigFile); // File name of large file, if any file in the list is bigger than 1MB console.log('done'); // Stream has finished @@ -2339,7 +2339,7 @@ const allBigFiles = await Readable.from([ 'file3', ]).every(async (fileName) => { const stats = await stat(fileName); - return stat.size > 1024 * 1024; + return stats.size > 1024 * 1024; }, { concurrency: 2 }); // `true` if all files in the list are bigger than 1MiB console.log(allBigFiles);