From 33706fecda5f77c0d0d5d3b6a51d759b49e1eeaf Mon Sep 17 00:00:00 2001 From: zhangxingxia Date: Thu, 21 Apr 2022 10:37:21 +0800 Subject: [PATCH] update fileio api Signed-off-by: zhangxingxia --- zh-cn/application-dev/reference/apis/js-apis-fileio.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-fileio.md b/zh-cn/application-dev/reference/apis/js-apis-fileio.md index 074f5a954c..10fe1daa80 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-fileio.md +++ b/zh-cn/application-dev/reference/apis/js-apis-fileio.md @@ -1221,7 +1221,7 @@ ftruncateSync(fd: number, len?: number): void - 示例: ```js - fileio.ftruncate(fd, len); + fileio.ftruncateSync(fd, len); ``` @@ -1293,7 +1293,7 @@ truncateSync(path: string, len?: number): void - 示例: ```js - fileio.ftruncate(path, len); + fileio.truncateSync(path, len); ``` -- GitLab