Skip to content

Commit

Permalink
doc: fix fs.openSync() signature
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
lpinca authored and targos committed Sep 4, 2021
1 parent 23a8aed commit c3ae1cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -4501,7 +4501,7 @@ and cleaning up the directory.
The `encoding` option sets the encoding for the `path` while opening the
directory and subsequent read operations.
### `fs.openSync(path[, flags, mode])`
### `fs.openSync(path[, flags[, mode]])`
<!-- YAML
added: v0.1.21
changes:
Expand Down

0 comments on commit c3ae1cf

Please sign in to comment.