From 5823938d156f4eb6dc718746afbf58f1150f70fb 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. PR-URL: https://github.com/nodejs/node/pull/20902 Reviewed-By: Anna Henningsen Reviewed-By: Richard Lau Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Trivikram Kamat --- 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 f88a3c23fc2..05869268632 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)