diff --git a/doc/api/fs.md b/doc/api/fs.md index 1d64f736337224..5d73c38fe2e0e8 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -945,6 +945,16 @@ object with an `encoding` property specifying the character encoding to use for the link path passed to the callback. If the `encoding` is set to `'buffer'`, the link path returned will be passed as a `Buffer` object. +## fs.readSync(fd, buffer, offset, length, position) + +* `fd` {Integer} +* `buffer` {String | Buffer} +* `offset` {Integer} +* `length` {Integer} +* `position` {Integer} + +Synchronous version of [`fs.read()`][]. Returns the number of `bytesRead`. + ## fs.realpath(path[, options], callback) * `path` {String | Buffer} @@ -960,16 +970,6 @@ object with an `encoding` property specifying the character encoding to use for the path passed to the callback. If the `encoding` is set to `'buffer'`, the path returned will be passed as a `Buffer` object. -## fs.readSync(fd, buffer, offset, length, position) - -* `fd` {Integer} -* `buffer` {String | Buffer} -* `offset` {Integer} -* `length` {Integer} -* `position` {Integer} - -Synchronous version of [`fs.read()`][]. Returns the number of `bytesRead`. - ## fs.realpathSync(path[, options]) * `path` {String | Buffer};