doc: update parameter type for fs.chmod()

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: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Santosh Yadav authored and Rich Trott committed 2019-12-27 00:01:46 -08:00
1 parent b46efa96cd
commit 283e7a43dc
1 file changed
+2 -2
+2 -2
View File
@@ -1380,7 +1380,7 @@ changes:
-->
* `path` {string|Buffer|URL}
* `mode` {integer}
* `mode` {string|integer}
* `callback` {Function}
* `err` {Error}
@@ -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()`][].