Skip to content

Commit 671a5b7

Browse files
santoshyadavdevtargos
authored andcommitted
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: #31085 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent cb35097 commit 671a5b7

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
@@ -1380,7 +1380,7 @@ changes:
13801380
-->
13811381

13821382
* `path` {string|Buffer|URL}
1383-
* `mode` {integer}
1383+
* `mode` {string|integer}
13841384
* `callback` {Function}
13851385
* `err` {Error}
13861386

@@ -1457,7 +1457,7 @@ changes:
14571457
-->
14581458

14591459
* `path` {string|Buffer|URL}
1460-
* `mode` {integer}
1460+
* `mode` {string|integer}
14611461

14621462
For detailed information, see the documentation of the asynchronous version of
14631463
this API: [`fs.chmod()`][].

0 commit comments

Comments
 (0)