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 074f5a954c6c18c569e3d00a76e3f9d484687480..10fe1daa80d09c7fbd2556fd96a6197c1513bb01 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); ```