Skip to content

Commit b0286ac

Browse files
jsumnersMylesBorins
authored andcommitted
doc: update umask for clarity
PR-URL: #14170 Fixes: #14169 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 7d851e3 commit b0286ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/process.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1654,9 +1654,9 @@ added: v0.1.19
16541654
* `mask` {number}
16551655

16561656
The `process.umask()` method sets or returns the Node.js process's file mode
1657-
creation mask. Child processes inherit the mask from the parent process. The old
1658-
mask is return if the `mask` argument is given, otherwise returns the current
1659-
mask.
1657+
creation mask. Child processes inherit the mask from the parent process. Invoked
1658+
without an argument, the current mask is returned, otherwise the umask is set to
1659+
the argument value and the previous mask is returned.
16601660

16611661
```js
16621662
const newmask = 0o022;

0 commit comments

Comments
 (0)