From b510fbd321a5c008f1542bfdbe1d5270cb6889c7 Mon Sep 17 00:00:00 2001 From: Bruno Jouhier Date: Sat, 14 Feb 2015 17:49:06 +0100 Subject: [PATCH] added note to the doc --- doc/api/fs.markdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/fs.markdown b/doc/api/fs.markdown index 5d3ef3bd1ce0..ca30fb9af527 100644 --- a/doc/api/fs.markdown +++ b/doc/api/fs.markdown @@ -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)