Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0ff6657

Browse filesBrowse files
jasnellrvagg
authored andcommitted
doc: fix minor types and grammar in fs docs
per: nodejs/node-v0.x-archive#7431 originally submitted by @linclark Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> PR-URL: #2378
1 parent 94d83c0 commit 0ff6657
Copy full SHA for 0ff6657

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/fs.markdown‎

Copy file name to clipboardExpand all lines: doc/api/fs.markdown
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ File I/O is provided by simple wrappers around standard POSIX functions. To
88
use this module do `require('fs')`. All the methods have asynchronous and
99
synchronous forms.
1010

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.
1212
The arguments passed to the completion callback depend on the method, but the
1313
first argument is always reserved for an exception. If the operation was
1414
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
5959
asynchronous versions of these calls. The synchronous versions will block
6060
the entire process until they complete--halting all connections.
6161

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()`.
6464

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

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

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,
578578
you need to compare `curr.mtime` and `prev.mtime`.
579579

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.