mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-28 23:14:12 +03:00
Merge pull request #435 from liigo/buffer_is_view
[doc] fix `ArrayBuffer::is_view()`'s document.
This commit is contained in:
commit
8abe0f903e
@ -301,10 +301,9 @@ extern "C" {
|
||||
#[wasm_bindgen(constructor)]
|
||||
pub fn new(length: u32) -> ArrayBuffer;
|
||||
|
||||
/// The `slice()` method returns a new `ArrayBuffer` whose contents
|
||||
/// are a copy of this `ArrayBuffer`'s bytes from begin, inclusive,
|
||||
/// up to end, exclusive.
|
||||
///
|
||||
/// The `isView()` method returns true if arg is one of the `ArrayBuffer`
|
||||
/// views, such as typed array objects or a DataView; false otherwise.
|
||||
///
|
||||
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView
|
||||
#[wasm_bindgen(static_method_of = ArrayBuffer, js_name = isView)]
|
||||
pub fn is_view(value: JsValue) -> bool;
|
||||
|
Loading…
Reference in New Issue
Block a user