This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Small changes for fs.watchFile. Fixed broken markdown. Changed variab…

…le `f` to a proper filename.

Fixes #1507.
  • Loading branch information...
3rd-Eden authored and koichik committed Aug 12, 2011
1 parent 3210809 commit 7ba30a4c2ec5b81f20373f5919510189e15f6f8c
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/api/fs.markdown
@@ -388,7 +388,7 @@ value in milliseconds. The default is `{ persistent: true, interval: 0 }`.
The `listener` gets two arguments the current stat object and the previous
stat object:
fs.watchFile(f, function (curr, prev) {
fs.watchFile('message.text', function (curr, prev) {
console.log('the current mtime is: ' + curr.mtime);
console.log('the previous mtime was: ' + prev.mtime);
});

0 comments on commit 7ba30a4

Please sign in to comment.