Skip to content

Commit 9888bb1

Browse files
Trottaddaleax
authored andcommitted
doc: improve fs.read() doc text
PR-URL: #14631 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent d604173 commit 9888bb1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/fs.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1639,9 +1639,9 @@ Read data from the file specified by `fd`.
16391639

16401640
`length` is an integer specifying the number of bytes to read.
16411641

1642-
`position` is an integer specifying where to begin reading from in the file.
1643-
If `position` is `null`, data will be read from the current file position,
1644-
and the file position will be updated for subsequent reads.
1642+
`position` is an argument specifying where to begin reading from in the file.
1643+
If `position` is `null`, data will be read from the current file position,
1644+
and the file position will be updated.
16451645
If `position` is an integer, the file position will remain unchanged.
16461646

16471647
The callback is given the three arguments, `(err, bytesRead, buffer)`.

0 commit comments

Comments
 (0)