Skip to content

Commit b232606

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 <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent da1f78c commit b232606

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/api/fs.md

Lines changed: 1 addition & 1 deletion
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)