From d94d7ece7bdbc2f7cd5543d3ae351c849689e3e1 Mon Sep 17 00:00:00 2001 From: Juan Sebastian velez Posada Date: Thu, 13 Feb 2020 10:13:16 -0500 Subject: [PATCH] Fix typo on statSync method --- src/documentation/0041-node-file-stats/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }