diff --git a/api/@ohos.buffer.d.ts b/api/@ohos.buffer.d.ts index 562ee536c6aa6f6b12289081184a45886dc5df97..f95cd2d6e7d9d30a8ac3df0712573354628ffac7 100644 --- a/api/@ohos.buffer.d.ts +++ b/api/@ohos.buffer.d.ts @@ -556,7 +556,7 @@ declare namespace buffer { * For the object whose value returned by valueof() function is strictly equal to object * or supports symbol To primitive object, a new buffer instance is created. * - * @param { Object } object - object object An object supporting Symbol.toPrimitive or valueOf() + * @param { Object } newobject - object object An object supporting Symbol.toPrimitive or valueOf() * @param { number | string } offsetOrEncoding - offsetOrEncoding offsetOrEncoding A byte-offset or encoding * @param { number } length - length length A length * @returns { Buffer } Return a new allocated Buffer @@ -569,7 +569,7 @@ declare namespace buffer { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - function from(object: Object, offsetOrEncoding: number | string, length: number): Buffer; + function from(newobject: Object, offsetOrEncoding: number | string, length: number): Buffer; /** * Creates a new Buffer containing string. The encoding parameter identifies the character encoding