Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSantosh Yadav <santosh.yadav198613@gmail.com>2019-12-27 10:18:31 +0300
committerRuben Bridgewater <ruben@bridgewater.de>2020-01-03 18:22:00 +0300
commit4c29a6ee15ba8888fa7081753b7014cb7ec9f4ba (patch)
tree5bf5000c6e23cef09e662832ded4a040a3ab3ca0 /doc
parent1bcc07b7580caec72085c511337cba0fec8abb10 (diff)
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>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/fs.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/fs.md b/doc/api/fs.md
index 1ed7542b97e..ee4d9750d93 100644
--- a/doc/api/fs.md
+++ b/doc/api/fs.md
@@ -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()`][].