Skip to content

Commit e24fc95

Browse files
committed
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 f911e09 commit e24fc95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/fs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4749,7 +4749,7 @@ On Windows, opening an existing hidden file using the `'w'` flag (either
47494749
through `fs.open()` or `fs.writeFile()` or `fsPromises.open()`) will fail with
47504750
`EPERM`. Existing hidden files can be opened for writing with the `'r+'` flag.
47514751

4752-
A call to `fs.ftruncate()` or `fsPromises.ftruncate()` can be used to reset
4752+
A call to `fs.ftruncate()` or `filehandle.truncate()` can be used to reset
47534753
the file contents.
47544754

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

0 commit comments

Comments
 (0)