Skip to content

Commit e15dc5f

Browse 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 <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 5a16a67 commit e15dc5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/fs.md

+3-3
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)