mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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:
1 parent
b46efa96cd
commit
283e7a43dc
1 file changed
+2
-2
+2
-2
@@ -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()`][].
|
||||
|
||||
Reference in new issue
Block a user