From 52b65e67c40bbaefd9d608f9d9823f0f63d514a2 Mon Sep 17 00:00:00 2001 From: James Sumners Date: Tue, 11 Jul 2017 12:59:00 -0400 Subject: [PATCH 1/2] doc: update umask for clarity --- doc/api/process.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/api/process.md b/doc/api/process.md index 82d854109973c2..7cf12f350d6773 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -1697,9 +1697,7 @@ added: v0.1.19 * `mask` {number} The `process.umask()` method sets or returns the Node.js process's file mode -creation mask. Child processes inherit the mask from the parent process. The old -mask is return if the `mask` argument is given, otherwise returns the current -mask. +creation mask. Child processes inherit the mask from the parent process. Invoked without an argument, the current mask is returned, otherwise the umask is set to the argument value and the previous mask is returned. ```js const newmask = 0o022; From a90ebebac05e2e5158fa8de66b7927deec91126d Mon Sep 17 00:00:00 2001 From: James Sumners Date: Tue, 11 Jul 2017 13:13:35 -0400 Subject: [PATCH 2/2] Wrap lines to 80 characters --- doc/api/process.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/api/process.md b/doc/api/process.md index 7cf12f350d6773..2a85a551c9e032 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -1697,7 +1697,9 @@ added: v0.1.19 * `mask` {number} The `process.umask()` method sets or returns the Node.js process's file mode -creation mask. Child processes inherit the mask from the parent process. Invoked without an argument, the current mask is returned, otherwise the umask is set to the argument value and the previous mask is returned. +creation mask. Child processes inherit the mask from the parent process. Invoked +without an argument, the current mask is returned, otherwise the umask is set to +the argument value and the previous mask is returned. ```js const newmask = 0o022;