Skip to content

Commit 395ba7b

Browse files
vsemozhetbyttargos
authored andcommitted
doc: fix a typo in fs.md
`fsPromises.ftruncate()` is neither documented nor exported. PR-URL: #22635 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent bac4c41 commit 395ba7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/fs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4723,7 +4723,7 @@ On Windows, opening an existing hidden file using the `'w'` flag (either
47234723
through `fs.open()` or `fs.writeFile()` or `fsPromises.open()`) will fail with
47244724
`EPERM`. Existing hidden files can be opened for writing with the `'r+'` flag.
47254725

4726-
A call to `fs.ftruncate()` or `fsPromises.ftruncate()` can be used to reset
4726+
A call to `fs.ftruncate()` or `filehandle.truncate()` can be used to reset
47274727
the file contents.
47284728

47294729
[`AHAFS`]: https://www.ibm.com/developerworks/aix/library/au-aix_event_infrastructure/

0 commit comments

Comments
 (0)