From 5352372d0dd2d6cf92f780e425f9105a77c63e26 Mon Sep 17 00:00:00 2001 From: Teddy Katz Date: Tue, 22 May 2018 19:54:30 -0400 Subject: [PATCH] doc: fix incorrect fs.readFileSync example output This fixes an incorrect example in the documentation for calling `fs.readFileSync` on a directory. The example was presumably copied from the documentation for `fs.readFile`, which has an error argument in its callback. --- doc/api/fs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index f88a3c23fc2ea9..05869268632a01 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -2377,7 +2377,7 @@ fs.readFileSync(''); // => [Error: EISDIR: illegal operation on a directory, read ] // FreeBSD -fs.readFileSync(''); // => null, +fs.readFileSync(''); // => ``` ## fs.readlink(path[, options], callback)