From e24fc95398e89759b132d07352b55941e7fb8474 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Sat, 1 Sep 2018 01:19:09 +0300 Subject: [PATCH] doc: fix a typo in fs.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `fsPromises.ftruncate()` is neither documented nor exported. PR-URL: https://github.com/nodejs/node/pull/22635 Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca Reviewed-By: Gireesh Punathil --- doc/api/fs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index a1db7b5483e919..377591b144db0e 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/