From e91a7a447d6880e71eab1c86151bdcab9b9592a6 Mon Sep 17 00:00:00 2001 From: James Sumners Date: Tue, 11 Jul 2017 12:59:00 -0400 Subject: [PATCH] doc: update umask for clarity PR-URL: https://github.com/nodejs/node/pull/14170 Fixes: https://github.com/nodejs/node/issues/14169 Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Gibson Fahnestock Reviewed-By: Refael Ackermann Reviewed-By: Gireesh Punathil Reviewed-By: James M Snell --- doc/api/process.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/process.md b/doc/api/process.md index 82d854109973c2..2a85a551c9e032 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -1697,9 +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. 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;