Skip to content

Commit

Permalink
doc: update 0022 to 0o022 in process.markdown
Browse files Browse the repository at this point in the history
Per @cjihrig's suggestion
  • Loading branch information
jasnell committed Dec 17, 2015
1 parent bae6728 commit aab18d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/process.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ Sets or reads the process's file mode creation mask. Child processes inherit
the mask from the parent process. Returns the old mask if `mask` argument is
given, otherwise returns the current mask.

const newmask = 0022;
const newmask = 0o022;
const oldmask = process.umask(newmask);
console.log(
`Changed umask from ${oldmask.toString(8)} to ${newmask.toString(8)}`
Expand Down

0 comments on commit aab18d0

Please sign in to comment.