diff --git a/graphic/graphic_2d/native_drawing/drawing_path.h b/graphic/graphic_2d/native_drawing/drawing_path.h index 1f4e18a2f17b7c4730a780a539dd4665a6de7a2d..1edaf0486949272f57d7ef640227e64687e33fdb 100644 --- a/graphic/graphic_2d/native_drawing/drawing_path.h +++ b/graphic/graphic_2d/native_drawing/drawing_path.h @@ -775,8 +775,8 @@ bool OH_Drawing_PathGetMatrix(OH_Drawing_Path* path, bool forceClosed, * @param count Returns with the size of array. * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. - * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if path, vals or count is nullptr, or acceptableError is - * less than 0. + * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if path or count is nullptr. + * Returns {@link OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE} if acceptableError is less than 0. * @since 20 * @version 1.0 */ @@ -795,8 +795,9 @@ OH_Drawing_ErrorCode OH_Drawing_PathApproximate(OH_Drawing_Path* path, float acc * @param interpolatedPath Indicates the pointer to an OH_Drawing_Path object to store the result. * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. - * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if eiter path, other, success or interpolatedPath is - * nullptr, or weight is outside the range [0, 1]. + * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if either path, other, success or interpolatedPath is + * nullptr. + * Returns {@link OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE} if weight is outside the range [0, 1]. * @since 20 * @version 1.0 */ @@ -815,7 +816,7 @@ OH_Drawing_ErrorCode OH_Drawing_PathInterpolate(OH_Drawing_Path* path, OH_Drawin * The value is true if the paths are compatible, and false otherwise. * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. - * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if eiter path, other or result is nullptr. + * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if either path, other or result is nullptr. * @since 20 * @version 1.0 */