doc: improve fs.truncate functions' documentation
Checklist
-
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
doc, fs
Description of change
The default value of the len
parameter is zero and it is included in
the documentation.
This patch also has an example of how ftruncate
can be used.
@nodejs/fs @nodejs/documentation