Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a5f1434

Browse filesBrowse 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 <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 54cbbae commit a5f1434
Copy full SHA for a5f1434

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎doc/api/fs.md‎

Copy file name to clipboardExpand all lines: doc/api/fs.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.