Skip to content

Commit

Permalink
Merge pull request #1372 from RReverser/fix-dataview-docs
Browse files Browse the repository at this point in the history
Fix docs for DataView::get*int32*
  • Loading branch information
alexcrichton authored Mar 20, 2019
2 parents 3f86c94 + 4e806ba commit d49d8c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/js-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d49d8c9

Please sign in to comment.