From a192afc2aa96a0a930876c96cd015aaf4edf03bd 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 cfcb2a32dbb161..6099af41168996 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()`][].