diff --git a/zh-cn/application-dev/reference/apis/js-apis-image.md b/zh-cn/application-dev/reference/apis/js-apis-image.md index 1363dc111bb724da532fda6a259aeed704eb8b8c..5c154c91cf367704d8f501fde27b6e371b984520 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-image.md +++ b/zh-cn/application-dev/reference/apis/js-apis-image.md @@ -751,7 +751,7 @@ rotate(angle: number, callback: AsyncCallback\): void import {BusinessError} from '@ohos.base' let angle = 90.0; pixelmap.rotate(angle, (err : BusinessError) => { - if (err) { + if (err) { console.error("Failed to set rotation."); return; } else {