Skip to content

Commit

Permalink
doc: Replace util.debug with console.error
Browse files Browse the repository at this point in the history
PR-URL: #2214
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
  • Loading branch information
yosuke-furukawa committed Jul 23, 2015
1 parent eb35968 commit 4ef2b5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/fs.markdown
Expand Up @@ -675,7 +675,7 @@ Test whether or not the given path exists by checking with the file system.
Then call the `callback` argument with either true or false. Example:

fs.exists('/etc/passwd', function (exists) {
util.debug(exists ? "it's there" : "no passwd!");
console.log(exists ? "it's there" : 'no passwd!');
});

`fs.exists()` is an anachronism and exists only for historical reasons.
Expand Down Expand Up @@ -717,8 +717,8 @@ a possible error argument. If any of the accessibility checks fail, the error
argument will be populated. The following example checks if the file
`/etc/passwd` can be read and written by the current process.

fs.access('/etc/passwd', fs.R_OK | fs.W_OK, function(err) {
util.debug(err ? 'no access!' : 'can read/write');
fs.access('/etc/passwd', fs.R_OK | fs.W_OK, function (err) {
console.log(err ? 'no access!' : 'can read/write');
});

## fs.accessSync(path[, mode])
Expand Down

0 comments on commit 4ef2b5f

Please sign in to comment.