@@ -8,7 +8,7 @@ File I/O is provided by simple wrappers around standard POSIX functions. To
8
8
use this module do ` require('fs') ` . All the methods have asynchronous and
9
9
synchronous forms.
10
10
11
- The asynchronous form always take a completion callback as its last argument.
11
+ The asynchronous form always takes a completion callback as its last argument.
12
12
The arguments passed to the completion callback depend on the method, but the
13
13
first argument is always reserved for an exception. If the operation was
14
14
completed successfully, then the first argument will be ` null ` or ` undefined ` .
@@ -59,8 +59,8 @@ In busy processes, the programmer is _strongly encouraged_ to use the
59
59
asynchronous versions of these calls. The synchronous versions will block
60
60
the entire process until they complete--halting all connections.
61
61
62
- Relative path to filename can be used, remember however that this path will be
63
- relative to ` process.cwd() ` .
62
+ The relative path to a filename can be used. Remember, however, that this path
63
+ will be relative to ` process.cwd() ` .
64
64
65
65
Most fs functions let you omit the callback argument. If you do, a default
66
66
callback is used that rethrows errors. To get a trace to the original call
@@ -574,7 +574,7 @@ stat object:
574
574
575
575
These stat objects are instances of ` fs.Stat ` .
576
576
577
- If you want to be notified when the file was modified, not just accessed
577
+ If you want to be notified when the file was modified, not just accessed,
578
578
you need to compare ` curr.mtime ` and ` prev.mtime ` .
579
579
580
580
_ Note: when an ` fs.watchFile ` operation results in an ` ENOENT ` error, it will
0 commit comments