Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
added note to the doc
Browse files Browse the repository at this point in the history
  • Loading branch information
bjouhier committed Feb 14, 2015
1 parent 05afa44 commit b510fbd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/api/fs.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ Synchronous ftruncate(2).

Asynchronous truncate(2). No arguments other than a possible exception are
given to the completion callback.
Currently, fs.truncate also accepts a file descriptor as first argument but
you should use fs.ftruncate in this case as this fallback may go away.

## fs.truncateSync(path, len)

Expand Down

0 comments on commit b510fbd

Please sign in to comment.