diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2018-09-01 01:19:09 +0300 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2018-09-02 18:49:29 +0300 |
commit | e24fc95398e89759b132d07352b55941e7fb8474 (patch) | |
tree | b9e47c931c18f61f1cc1a61506e02bec1c9f9b16 /doc | |
parent | f911e09ab435f5ab8a8e50a6d59aa9a01923058d (diff) | |
download | android-node-v8-e24fc95398e89759b132d07352b55941e7fb8474.tar.gz android-node-v8-e24fc95398e89759b132d07352b55941e7fb8474.tar.bz2 android-node-v8-e24fc95398e89759b132d07352b55941e7fb8474.zip |
doc: fix a typo in fs.md
`fsPromises.ftruncate()` is neither documented nor exported.
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/fs.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/fs.md b/doc/api/fs.md index a1db7b5483..377591b144 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -4749,7 +4749,7 @@ On Windows, opening an existing hidden file using the `'w'` flag (either through `fs.open()` or `fs.writeFile()` or `fsPromises.open()`) will fail with `EPERM`. Existing hidden files can be opened for writing with the `'r+'` flag. -A call to `fs.ftruncate()` or `fsPromises.ftruncate()` can be used to reset +A call to `fs.ftruncate()` or `filehandle.truncate()` can be used to reset the file contents. [`AHAFS`]: https://www.ibm.com/developerworks/aix/library/au-aix_event_infrastructure/ |