Skip to content

Commit

Permalink
doc: fix incorrect argument type in fs.readSync
Browse files Browse the repository at this point in the history
The `buffer` argument must be either Buffer or Uint8Array, string
values are not supported.

PR-URL: #18022
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Weijia Wang <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
belochub authored and jasnell committed Jan 9, 2018
1 parent a02fcd2 commit bcb01de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2351,7 +2351,7 @@ changes:
-->

* `fd` {integer}
* `buffer` {string|Buffer|Uint8Array}
* `buffer` {Buffer|Uint8Array}
* `offset` {integer}
* `length` {integer}
* `position` {integer}
Expand Down

0 comments on commit bcb01de

Please sign in to comment.