Skip to content

Commit a02de1b

Browse files
committed
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 efd1667 commit a02de1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/fs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4119,9 +4119,9 @@ Using [`fs.watch()`][] is more efficient than `fs.watchFile` and
41194119
`fs.unwatchFile` when possible.
41204120

41214121
When a file being watched by `fs.watchFile()` disappears and reappears,
4122-
then the `previousStat` reported in the second callback event (the file's
4123-
reappearance) will be the same as the `previousStat` of the first callback
4124-
event (its disappearance).
4122+
then the contents of `previous` in the second callback event (the file's
4123+
reappearance) will be the same as the contents of `previous` in the first
4124+
callback event (its disappearance).
41254125

41264126
This happens when:
41274127

0 commit comments

Comments
 (0)