Skip to content

Commit c3ae1cf

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 <duhamelantoine1995@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
1 parent 23a8aed commit c3ae1cf

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
@@ -4501,7 +4501,7 @@ and cleaning up the directory.
45014501
The `encoding` option sets the encoding for the `path` while opening the
45024502
directory and subsequent read operations.
45034503
4504-
### `fs.openSync(path[, flags, mode])`
4504+
### `fs.openSync(path[, flags[, mode]])`
45054505
<!-- YAML
45064506
added: v0.1.21
45074507
changes:

0 commit comments

Comments
 (0)