Skip to content

Commit e91a7a4

Browse files
jsumnersaddaleax
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 157ef23 commit e91a7a4

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
@@ -1697,9 +1697,9 @@ added: v0.1.19
16971697
* `mask` {number}
16981698

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

17041704
```js
17051705
const newmask = 0o022;

0 commit comments

Comments
 (0)