From 283e7a43dc401da1437dada74a6fb4321dd5555e Mon Sep 17 00:00:00 2001 From: Santosh Yadav Date: Fri, 27 Dec 2019 12:48:31 +0530 Subject: [PATCH] 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 Reviewed-By: Rich Trott Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat --- doc/api/fs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 1ed7542b97e535..ee4d9750d9326a 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()`][].