Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
doc: correct return value of string-based fs.readSync
Closes #2330
  • Loading branch information
shama authored and bnoordhuis committed May 1, 2012
1 parent b45a108 commit 6ba3e68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/fs.markdown
Expand Up @@ -370,8 +370,8 @@ Synchronous version of buffer-based `fs.read`. Returns the number of

## fs.readSync(fd, length, position, encoding)

Synchronous version of string-based `fs.read`. Returns the number of
`bytesRead`.
Legacy synchronous version of string-based `fs.read`. Returns an array with the
data from the file specified and number of bytes read, `[string, bytesRead]`.

## fs.readFile(filename, [encoding], [callback])

Expand Down

0 comments on commit 6ba3e68

Please sign in to comment.