From 4c29a6ee15ba8888fa7081753b7014cb7ec9f4ba Mon Sep 17 00:00:00 2001 From: Santosh Yadav Date: Fri, 27 Dec 2019 12:48:31 +0530 Subject: 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(-) (limited to 'doc') 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()`][]. -- cgit v1.2.3