Skip to content

Commit 53c6a1e

Browse files
cjihrigBridgeAR
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 6855788 commit 53c6a1e

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
@@ -1979,7 +1979,7 @@ changes:
19791979
-->
19801980

19811981
* `fd` {integer}
1982-
* `mode` {integer}
1982+
* `mode` {string|integer}
19831983
* `callback` {Function}
19841984
* `err` {Error}
19851985

@@ -1992,7 +1992,7 @@ added: v0.4.7
19921992
-->
19931993

19941994
* `fd` {integer}
1995-
* `mode` {integer}
1995+
* `mode` {string|integer}
19961996

19971997
Synchronous fchmod(2). Returns `undefined`.
19981998

0 commit comments

Comments
 (0)