Permalink
Browse files

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

…le `f` to a proper filename.


Fixes #1507.
  • Loading branch information...
1 parent 3210809 commit 7ba30a4c2ec5b81f20373f5919510189e15f6f8c @3rd-Eden 3rd-Eden committed with koichik Aug 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/api/fs.markdown
View
@@ -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.