Skip to content

Commit 479658b

Browse files
rbrishabhnodejs-github-bot
authored andcommitted
doc: changes default values for fs.read fns
PR-URL: nodejs#39163 Fixes: nodejs#39034 Reviewed-By: Nitzan Uziely <linkgoron@gmail.com> Reviewed-By: Qingyu Deng <i@ayase-lab.com>
1 parent 7153d25 commit 479658b

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

doc/api/fs.md

Lines changed: 4 additions & 8 deletions
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
@@ -2884,11 +2882,9 @@ changes:
28842882
28852883
* `fd` {integer}
28862884
* `buffer` {Buffer|TypedArray|DataView} The buffer that the data will be
2887-
written to. **Default:** `Buffer.alloc(16384)`
2888-
* `offset` {integer} The position in `buffer` to write the data to. **Default:**
2889-
`0`
2890-
* `length` {integer} The number of bytes to read. **Default:**
2891-
`buffer.byteLength`
2885+
written to.
2886+
* `offset` {integer} The position in `buffer` to write the data to.
2887+
* `length` {integer} The number of bytes to read.
28922888
* `position` {integer|bigint} Specifies where to begin reading from in the
28932889
file. If `position` is `null` or `-1 `, data will be read from the current
28942890
file position, and the file position will be updated. If `position` is an

0 commit comments

Comments
 (0)