From 61be0004a62d597146584cc49c74bda77f34879e Mon Sep 17 00:00:00 2001 From: Jeremiah Senkpiel Date: Tue, 26 Apr 2016 10:27:18 -0400 Subject: [PATCH] doc: fix position of `fs.readSync()` PR-URL: https://github.com/nodejs/node/pull/6399 Reviewed-By: Evan Lucas Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Brian White Reviewed-By: James M Snell --- doc/api/fs.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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};