diff --git a/en/application-dev/reference/apis/js-apis-fileio.md b/en/application-dev/reference/apis/js-apis-fileio.md index f574cc158968757560d2821e960819e3ea4e9b49..a631fd065c8c27d47a12e507ba739d8c40e8b08c 100644 --- a/en/application-dev/reference/apis/js-apis-fileio.md +++ b/en/application-dev/reference/apis/js-apis-fileio.md @@ -1221,7 +1221,7 @@ Synchronously truncates a file based on the file descriptor. - Example ```js - fileio.ftruncate(fd, len); + fileio.ftruncateSync(fd, len); ``` @@ -1293,7 +1293,7 @@ Synchronously truncates a file based on the file path. - Example ```js - fileio.ftruncate(path, len); + fileio.truncateSync(path, len); ```