Skip to content

Commit 2011f2c

Browse files
committed
doc: fix position of fs.readSync()
PR-URL: #6399 Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 29a6c7c commit 2011f2c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

doc/api/fs.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,16 @@ object with an `encoding` property specifying the character encoding to use for
945945
the link path passed to the callback. If the `encoding` is set to `'buffer'`,
946946
the link path returned will be passed as a `Buffer` object.
947947

948+
## fs.readSync(fd, buffer, offset, length, position)
949+
950+
* `fd` {Integer}
951+
* `buffer` {String | Buffer}
952+
* `offset` {Integer}
953+
* `length` {Integer}
954+
* `position` {Integer}
955+
956+
Synchronous version of [`fs.read()`][]. Returns the number of `bytesRead`.
957+
948958
## fs.realpath(path[, options], callback)
949959

950960
* `path` {String | Buffer}
@@ -960,16 +970,6 @@ object with an `encoding` property specifying the character encoding to use for
960970
the path passed to the callback. If the `encoding` is set to `'buffer'`,
961971
the path returned will be passed as a `Buffer` object.
962972

963-
## fs.readSync(fd, buffer, offset, length, position)
964-
965-
* `fd` {Integer}
966-
* `buffer` {String | Buffer}
967-
* `offset` {Integer}
968-
* `length` {Integer}
969-
* `position` {Integer}
970-
971-
Synchronous version of [`fs.read()`][]. Returns the number of `bytesRead`.
972-
973973
## fs.realpathSync(path[, options])
974974

975975
* `path` {String | Buffer};

0 commit comments

Comments
 (0)