Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc: fix minor types and grammar in fs docs
per: nodejs/node-v0.x-archive#7431

Originally submitted by @linclark
  • Loading branch information
jasnell committed Aug 26, 2015
commit 8e44a547b84f06478d98d857f395da51d7551816
8 changes: 4 additions & 4 deletions doc/api/fs.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ File I/O is provided by simple wrappers around standard POSIX functions. To
use this module do `require('fs')`. All the methods have asynchronous and
synchronous forms.

The asynchronous form always take a completion callback as its last argument.
The asynchronous form always takes a completion callback as its last argument.
The arguments passed to the completion callback depend on the method, but the
first argument is always reserved for an exception. If the operation was
completed successfully, then the first argument will be `null` or `undefined`.
Expand Down Expand Up @@ -59,8 +59,8 @@ In busy processes, the programmer is _strongly encouraged_ to use the
asynchronous versions of these calls. The synchronous versions will block
the entire process until they complete--halting all connections.

Relative path to filename can be used, remember however that this path will be
relative to `process.cwd()`.
The relative path to a filename can be used. Remember, however, that this path
will be relative to `process.cwd()`.

Most fs functions let you omit the callback argument. If you do, a default
callback is used that rethrows errors. To get a trace to the original call
Expand Down Expand Up @@ -574,7 +574,7 @@ stat object:

These stat objects are instances of `fs.Stat`.

If you want to be notified when the file was modified, not just accessed
If you want to be notified when the file was modified, not just accessed,
you need to compare `curr.mtime` and `prev.mtime`.

_Note: when an `fs.watchFile` operation results in an `ENOENT` error, it will
Expand Down