Skip to content

Commit

Permalink
doc: update mode type for fchmod() functions
Browse files Browse the repository at this point in the history
fs.fchmod() and fs.fchmodSync() both support strings as their
mode argument. This commit updates the documentation to
reflect this.

PR-URL: #31115
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
cjihrig authored and targos committed Jan 14, 2020
1 parent 54cbbae commit a5f1434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1953,7 +1953,7 @@ changes:
-->

* `fd` {integer}
* `mode` {integer}
* `mode` {string|integer}
* `callback` {Function}
* `err` {Error}

Expand All @@ -1966,7 +1966,7 @@ added: v0.4.7
-->

* `fd` {integer}
* `mode` {integer}
* `mode` {string|integer}

Synchronous fchmod(2). Returns `undefined`.

Expand Down

0 comments on commit a5f1434

Please sign in to comment.