Skip to content

Commit ebc0e82

Browse files
authored
Docs: change createReadStream to fs.createReadStream (#7511)
1 parent 8f8f028 commit ebc0e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ async function downloadFile(url, outoutPath) {
112112
}
113113

114114
async function readFile(filePath) {
115-
const readStream = createReadStream(filePath, { encoding: 'utf8' });
115+
const readStream = fs.createReadStream(filePath, { encoding: 'utf8' });
116116

117117
try {
118118
for await (const chunk of readStream) {

0 commit comments

Comments
 (0)