summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorYosuke Furukawa <yosuke.furukawa@gmail.com>2015-07-22 02:30:20 +0900
committerYosuke Furukawa <yosuke.furukawa@gmail.com>2015-07-24 02:45:32 +0900
commit4ef2b5fbfbdb2bcabd7791c4143f57c2bced5b0d (patch)
treef56fa87110647e3bc89c812796b928bba139035a /doc
parenteb35968de7a040d737f3280e9fed0b6edf566b2b (diff)
downloadandroid-node-v8-4ef2b5fbfbdb2bcabd7791c4143f57c2bced5b0d.tar.gz
android-node-v8-4ef2b5fbfbdb2bcabd7791c4143f57c2bced5b0d.tar.bz2
android-node-v8-4ef2b5fbfbdb2bcabd7791c4143f57c2bced5b0d.zip
doc: Replace util.debug with console.error
PR-URL: https://github.com/nodejs/io.js/pull/2214 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/fs.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/fs.markdown b/doc/api/fs.markdown
index 985a4e4c96..82841f0acf 100644
--- a/doc/api/fs.markdown
+++ b/doc/api/fs.markdown
@@ -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.
@@ -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])