Skip to content

Commit e4825dc

Browse files
rbrishabhBethGriggs
authored andcommittedSep 21, 2021
doc: changes default values for fs.read fns
PR-URL: #39163 Fixes: #39034 Reviewed-By: Nitzan Uziely <linkgoron@gmail.com> Reviewed-By: Qingyu Deng <i@ayase-lab.com>
1 parent 85206b7 commit e4825dc

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed
 

‎doc/api/fs.md

+4-8
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,7 @@ added: v10.0.0
258258
* `buffer` {Buffer|TypedArray|DataView} A buffer that will be filled with the
259259
file data read.
260260
* `offset` {integer} The location in the buffer at which to start filling.
261-
**Default:** `0`
262-
* `length` {integer} The number of bytes to read. **Default:**
263-
`buffer.byteLength`
261+
* `length` {integer} The number of bytes to read.
264262
* `position` {integer} The location where to begin reading data from the
265263
file. If `null`, data will be read from the current file position, and
266264
the position will be updated. If `position` is an integer, the current
@@ -2836,11 +2834,9 @@ changes:
28362834
28372835
* `fd` {integer}
28382836
* `buffer` {Buffer|TypedArray|DataView} The buffer that the data will be
2839-
written to. **Default:** `Buffer.alloc(16384)`
2840-
* `offset` {integer} The position in `buffer` to write the data to. **Default:**
2841-
`0`
2842-
* `length` {integer} The number of bytes to read. **Default:**
2843-
`buffer.byteLength`
2837+
written to.
2838+
* `offset` {integer} The position in `buffer` to write the data to.
2839+
* `length` {integer} The number of bytes to read.
28442840
* `position` {integer|bigint} Specifies where to begin reading from in the
28452841
file. If `position` is `null` or `-1 `, data will be read from the current
28462842
file position, and the file position will be updated. If `position` is an

0 commit comments

Comments
 (0)
Please sign in to comment.