doc: fix incorrect argument type in fs.readSync

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 <gpunathi@in.ibm.com>
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Mykola Bilochub authored and James M Snell committed 2018-01-09 15:26:32 -08:00
1 parent a02fcd2716
commit bcb01de515
1 file changed
+1 -1
+1 -1
View File
@@ -2351,7 +2351,7 @@ changes:
-->
* `fd` {integer}
* `buffer` {string|Buffer|Uint8Array}
* `buffer` {Buffer|Uint8Array}
* `offset` {integer}
* `length` {integer}
* `position` {integer}