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 e15dc5f

Browse filesBrowse files
Trottaddaleax
authored andcommitted
doc: use correct identifier for callback argument
In one place, the fs docs use `previousStat` for an argument that is identified as `previous` everywhere else. Use `previous` for consistency. PR-URL: #34405 Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 5a16a67 commit e15dc5f
Copy full SHA for e15dc5f

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎doc/api/fs.md‎

Copy file name to clipboardExpand all lines: doc/api/fs.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -3996,9 +3996,9 @@ Using [`fs.watch()`][] is more efficient than `fs.watchFile` and
39963996
`fs.unwatchFile` when possible.
39973997

39983998
When a file being watched by `fs.watchFile()` disappears and reappears,
3999-
then the `previousStat` reported in the second callback event (the file's
4000-
reappearance) will be the same as the `previousStat` of the first callback
4001-
event (its disappearance).
3999+
then the contents of `previous` in the second callback event (the file's
4000+
reappearance) will be the same as the contents of `previous` in the first
4001+
callback event (its disappearance).
40024002

40034003
This happens when:
40044004

0 commit comments

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