Skip to content

Commit d49d8c9

Browse files
authored
Merge pull request #1372 from RReverser/fix-dataview-docs
Fix docs for DataView::get*int32*
2 parents 3f86c94 + 4e806ba commit d49d8c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/js-sys/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -562,28 +562,28 @@ extern "C" {
562562
#[wasm_bindgen(method, js_name = getUint16)]
563563
pub fn get_uint16_endian(this: &DataView, byte_offset: usize, little_endian: bool) -> u16;
564564

565-
/// The getInt32() method gets a signed 16-bit integer (byte) at the specified
565+
/// The getInt32() method gets a signed 32-bit integer (byte) at the specified
566566
/// byte offset from the start of the DataView.
567567
///
568568
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getInt32)
569569
#[wasm_bindgen(method, js_name = getInt32)]
570570
pub fn get_int32(this: &DataView, byte_offset: usize) -> i32;
571571

572-
/// The getInt32() method gets a signed 16-bit integer (byte) at the specified
572+
/// The getInt32() method gets a signed 32-bit integer (byte) at the specified
573573
/// byte offset from the start of the DataView.
574574
///
575575
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getInt32)
576576
#[wasm_bindgen(method, js_name = getInt32)]
577577
pub fn get_int32_endian(this: &DataView, byte_offset: usize, little_endian: bool) -> i32;
578578

579-
/// The getUint32() an unsigned 16-bit integer (unsigned byte) at the specified
579+
/// The getUint32() an unsigned 32-bit integer (unsigned byte) at the specified
580580
/// byte offset from the start of the view.
581581
///
582582
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getUint32)
583583
#[wasm_bindgen(method, js_name = getUint32)]
584584
pub fn get_uint32(this: &DataView, byte_offset: usize) -> u32;
585585

586-
/// The getUint32() an unsigned 16-bit integer (unsigned byte) at the specified
586+
/// The getUint32() an unsigned 32-bit integer (unsigned byte) at the specified
587587
/// byte offset from the start of the view.
588588
///
589589
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getUint32)

0 commit comments

Comments
 (0)