From 4e806bab705cbf7a54b0048fe1f23dfc6c449499 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Wed, 20 Mar 2019 18:32:34 +0000 Subject: [PATCH] Fix docs for DataView::get*int32* --- crates/js-sys/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/js-sys/src/lib.rs b/crates/js-sys/src/lib.rs index 660a4af7..d658f8fc 100644 --- a/crates/js-sys/src/lib.rs +++ b/crates/js-sys/src/lib.rs @@ -562,28 +562,28 @@ extern "C" { #[wasm_bindgen(method, js_name = getUint16)] pub fn get_uint16_endian(this: &DataView, byte_offset: usize, little_endian: bool) -> u16; - /// The getInt32() method gets a signed 16-bit integer (byte) at the specified + /// The getInt32() method gets a signed 32-bit integer (byte) at the specified /// byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getInt32) #[wasm_bindgen(method, js_name = getInt32)] pub fn get_int32(this: &DataView, byte_offset: usize) -> i32; - /// The getInt32() method gets a signed 16-bit integer (byte) at the specified + /// The getInt32() method gets a signed 32-bit integer (byte) at the specified /// byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getInt32) #[wasm_bindgen(method, js_name = getInt32)] pub fn get_int32_endian(this: &DataView, byte_offset: usize, little_endian: bool) -> i32; - /// The getUint32() an unsigned 16-bit integer (unsigned byte) at the specified + /// The getUint32() an unsigned 32-bit integer (unsigned byte) at the specified /// byte offset from the start of the view. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getUint32) #[wasm_bindgen(method, js_name = getUint32)] pub fn get_uint32(this: &DataView, byte_offset: usize) -> u32; - /// The getUint32() an unsigned 16-bit integer (unsigned byte) at the specified + /// The getUint32() an unsigned 32-bit integer (unsigned byte) at the specified /// byte offset from the start of the view. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getUint32)