From b3ff0ed6523f7242edfaf089220764fff4f007e3 Mon Sep 17 00:00:00 2001 From: Mykola Bilochub Date: Sun, 7 Jan 2018 01:46:59 +0200 Subject: [PATCH] doc: fix incorrect argument type in fs.readSync MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `buffer` argument must be either Buffer or Uint8Array, string values are not supported. PR-URL: https://github.com/nodejs/node/pull/18022 Reviewed-By: Gireesh Punathil Reviewed-By: Weijia Wang Reviewed-By: Tobias Nießen Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- 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 07b3f38a102635..233df270565b9c 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -2124,7 +2124,7 @@ changes: --> * `fd` {integer} -* `buffer` {string|Buffer|Uint8Array} +* `buffer` {Buffer|Uint8Array} * `offset` {integer} * `length` {integer} * `position` {integer}