Browse Source

Small changes for fs.watchFile. Fixed broken markdown. Changed variable `f` to a proper filename.

Fixes #1507.
v0.7.4-release
Arnout Kazemier 14 years ago
committed by koichik
parent
commit
7ba30a4c2e
  1. 2
      doc/api/fs.markdown

2
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 The `listener` gets two arguments the current stat object and the previous
stat object: 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 current mtime is: ' + curr.mtime);
console.log('the previous mtime was: ' + prev.mtime); console.log('the previous mtime was: ' + prev.mtime);
}); });

Loading…
Cancel
Save