From 5854b21da5e63979fc11a2c310693f114a90192b 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 9c7c48ba4371ac..5c380a7022ebb3 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -1979,7 +1979,7 @@ changes: --> * `fd` {integer} -* `mode` {integer} +* `mode` {string|integer} * `callback` {Function} * `err` {Error} @@ -1992,7 +1992,7 @@ added: v0.4.7 --> * `fd` {integer} -* `mode` {integer} +* `mode` {string|integer} Synchronous fchmod(2). Returns `undefined`.