diff --git a/src/documentation/0041-node-file-stats/index.md b/src/documentation/0041-node-file-stats/index.md index bb0df48be0..0ef87cb5ab 100644 --- a/src/documentation/0041-node-file-stats/index.md +++ b/src/documentation/0041-node-file-stats/index.md @@ -27,7 +27,7 @@ Node.js provides also a sync method, which blocks the thread until the file stat ```js const fs = require('fs') try { - const stats = fs.stat('/Users/joe/test.txt') + const stats = fs.statSync('/Users/joe/test.txt') } catch (err) { console.error(err) }