Skip to content

Commit 48847aa

Browse files
authored
Fix typo: rename outoutPath to outputPath in "reading-files-with-node… (#7538)
Fix typo: rename outoutPath to outputPath in "reading-files-with-nodejs.md" Signed-off-by: Nihat <abdullazadenihat@gmail.com>
1 parent 0135352 commit 48847aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/site/pages/en/learn/manipulating-files/reading-files-with-nodejs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ import { pipeline } from 'node:stream/promises';
9797
const fileUrl = 'https://www.gutenberg.org/files/2701/2701-0.txt';
9898
const outputFilePath = path.join(process.cwd(), 'moby.md');
9999

100-
async function downloadFile(url, outoutPath) {
100+
async function downloadFile(url, outputPath) {
101101
const response = await fetch(url);
102102

103103
if (!response.ok || !response.body) {
104104
throw new Error(`Failed to fetch ${url}. Status: ${response.status}`);
105105
}
106106

107-
const fileStream = fs.createWriteStream(outoutPath);
108-
console.log(`Downloading file from ${url} to ${outoutPath}`);
107+
const fileStream = fs.createWriteStream(outputPath);
108+
console.log(`Downloading file from ${url} to ${outputPath}`);
109109

110110
await pipeline(response.body, fileStream);
111111
console.log('File downloaded successfully');

0 commit comments

Comments
 (0)