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 <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
santoshyadavdev authored and BethGriggs committed Feb 6, 2020
1 parent 1b04e67 commit a192afc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/fs.md
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 a192afc

Please sign in to comment.