Skip to content

Commit a5f1434

Browse files
cjihrigtargos
authored andcommitted
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: #31115 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 54cbbae commit a5f1434

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/fs.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1953,7 +1953,7 @@ changes:
19531953
-->
19541954

19551955
* `fd` {integer}
1956-
* `mode` {integer}
1956+
* `mode` {string|integer}
19571957
* `callback` {Function}
19581958
* `err` {Error}
19591959

@@ -1966,7 +1966,7 @@ added: v0.4.7
19661966
-->
19671967

19681968
* `fd` {integer}
1969-
* `mode` {integer}
1969+
* `mode` {string|integer}
19701970

19711971
Synchronous fchmod(2). Returns `undefined`.
19721972

0 commit comments

Comments
 (0)