mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
doc: improve fs.read() doc text
PR-URL: https://github.com/nodejs/node/pull/14631 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
1 parent
680285c3b4
commit
0f325aaaeb
1 file changed
+3
-3
+3
-3
@@ -1639,9 +1639,9 @@ Read data from the file specified by `fd`.
|
||||
|
||||
`length` is an integer specifying the number of bytes to read.
|
||||
|
||||
`position` is an integer specifying where to begin reading from in the file.
|
||||
If `position` is `null`, data will be read from the current file position,
|
||||
and the file position will be updated for subsequent reads.
|
||||
`position` is an argument specifying where to begin reading from in the file.
|
||||
If `position` is `null`, data will be read from the current file position,
|
||||
and the file position will be updated.
|
||||
If `position` is an integer, the file position will remain unchanged.
|
||||
|
||||
The callback is given the three arguments, `(err, bytesRead, buffer)`.
|
||||
|
||||
Reference in new issue
Block a user