Skip to content

Commit

Permalink
doc: update parameter type for fs.chmod()
Browse files Browse the repository at this point in the history
The mode parameter of fs.chmod() and fs.chmodSync() can be a string or
an integer. This change updates the documentation, which currently omits
string as a valid type for mode.

PR-URL: #31085
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
santoshyadavdev authored and targos committed Jan 14, 2020
1 parent cb35097 commit 671a5b7
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 @@ -1380,7 +1380,7 @@ changes:
-->

* `path` {string|Buffer|URL}
* `mode` {integer}
* `mode` {string|integer}
* `callback` {Function}
* `err` {Error}

Expand Down Expand Up @@ -1457,7 +1457,7 @@ changes:
-->

* `path` {string|Buffer|URL}
* `mode` {integer}
* `mode` {string|integer}

For detailed information, see the documentation of the asynchronous version of
this API: [`fs.chmod()`][].
Expand Down

0 comments on commit 671a5b7

Please sign in to comment.