Skip to content

Commit 4a828c6

Browse files
TrottMylesBorins
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 9d40af5 commit 4a828c6

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
@@ -4099,9 +4099,9 @@ Using [`fs.watch()`][] is more efficient than `fs.watchFile` and
40994099
`fs.unwatchFile` when possible.
41004100

41014101
When a file being watched by `fs.watchFile()` disappears and reappears,
4102-
then the `previousStat` reported in the second callback event (the file's
4103-
reappearance) will be the same as the `previousStat` of the first callback
4104-
event (its disappearance).
4102+
then the contents of `previous` in the second callback event (the file's
4103+
reappearance) will be the same as the contents of `previous` in the first
4104+
callback event (its disappearance).
41054105

41064106
This happens when:
41074107

0 commit comments

Comments
 (0)