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: nodejs#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 moander committed May 11, 2021
1 parent cb10e91 commit d18f264
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 @@ -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 d18f264

Please sign in to comment.