Skip to content

Commit d3de0ef

Browse files
lpincatargos
authored andcommitted
doc: fix fs.openSync() signature
The `mode` argument depends on the `flags` argument but it is optional even if the `flags` argument is specified. PR-URL: #38591 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Zijian Liu <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
1 parent 24472d9 commit d3de0ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/fs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4533,7 +4533,7 @@ and cleaning up the directory.
45334533
The `encoding` option sets the encoding for the `path` while opening the
45344534
directory and subsequent read operations.
45354535
4536-
### `fs.openSync(path[, flags, mode])`
4536+
### `fs.openSync(path[, flags[, mode]])`
45374537
<!-- YAML
45384538
added: v0.1.21
45394539
changes:

0 commit comments

Comments
 (0)