From be2a467395eb16e645708623e9929736f5447230 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 26eda38f739892..957d6b4265ab7e 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -2367,7 +2367,7 @@ fs.readFileSync(''); // => [Error: EISDIR: illegal operation on a directory, read ] // FreeBSD -fs.readFileSync(''); // => null, +fs.readFileSync(''); // => ``` ## fs.readlink(path[, options], callback)