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 <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>
  • Loading branch information
lpinca authored and targos committed May 17, 2021
1 parent 24472d9 commit d3de0ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/fs.md
Expand Up @@ -4533,7 +4533,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 d3de0ef

Please sign in to comment.