Skip to content

Commit

Permalink
doc: changes default values for fs.read fns
Browse files Browse the repository at this point in the history
PR-URL: #39163
Fixes: #39034
Reviewed-By: Nitzan Uziely <[email protected]>
Reviewed-By: Qingyu Deng <[email protected]>
  • Loading branch information
rbrishabh authored and BethGriggs committed Sep 21, 2021
1 parent 85206b7 commit e4825dc
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,7 @@ added: v10.0.0
* `buffer` {Buffer|TypedArray|DataView} A buffer that will be filled with the
file data read.
* `offset` {integer} The location in the buffer at which to start filling.
**Default:** `0`
* `length` {integer} The number of bytes to read. **Default:**
`buffer.byteLength`
* `length` {integer} The number of bytes to read.
* `position` {integer} The location where to begin reading data from the
file. If `null`, data will be read from the current file position, and
the position will be updated. If `position` is an integer, the current
Expand Down Expand Up @@ -2836,11 +2834,9 @@ changes:
* `fd` {integer}
* `buffer` {Buffer|TypedArray|DataView} The buffer that the data will be
written to. **Default:** `Buffer.alloc(16384)`
* `offset` {integer} The position in `buffer` to write the data to. **Default:**
`0`
* `length` {integer} The number of bytes to read. **Default:**
`buffer.byteLength`
written to.
* `offset` {integer} The position in `buffer` to write the data to.
* `length` {integer} The number of bytes to read.
* `position` {integer|bigint} Specifies where to begin reading from in the
file. If `position` is `null` or `-1 `, data will be read from the current
file position, and the file position will be updated. If `position` is an
Expand Down

0 comments on commit e4825dc

Please sign in to comment.