From e104e72f582810249d1bea2c58a931323caa360b Mon Sep 17 00:00:00 2001 From: cjihrig Date: Fri, 27 Dec 2019 10:12:35 -0500 Subject: [PATCH] doc: update mode type for fchmod() functions fs.fchmod() and fs.fchmodSync() both support strings as their mode argument. This commit updates the documentation to reflect this. PR-URL: https://github.com/nodejs/node/pull/31115 Reviewed-By: Ruben Bridgewater Reviewed-By: Rich Trott Reviewed-By: David Carlier Reviewed-By: Luigi Pinca --- 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 345d0225ee4d0b..8ad43dacaa1edb 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -1953,7 +1953,7 @@ changes: --> * `fd` {integer} -* `mode` {integer} +* `mode` {string|integer} * `callback` {Function} * `err` {Error} @@ -1966,7 +1966,7 @@ added: v0.4.7 --> * `fd` {integer} -* `mode` {integer} +* `mode` {string|integer} Synchronous fchmod(2). Returns `undefined`.