Skip to content

Commit ae9c5a8

Browse files
committed
[doc] fix ArrayBuffer::is_view()'s document.
1 parent f2f2d72 commit ae9c5a8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/js.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,9 @@ extern "C" {
301301
#[wasm_bindgen(constructor)]
302302
pub fn new(length: u32) -> ArrayBuffer;
303303

304-
/// The `slice()` method returns a new `ArrayBuffer` whose contents
305-
/// are a copy of this `ArrayBuffer`'s bytes from begin, inclusive,
306-
/// up to end, exclusive.
307-
///
304+
/// The `isView()` method returns true if arg is one of the `ArrayBuffer`
305+
/// views, such as typed array objects or a DataView; false otherwise.
306+
///
308307
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView
309308
#[wasm_bindgen(static_method_of = ArrayBuffer, js_name = isView)]
310309
pub fn is_view(value: JsValue) -> bool;

0 commit comments

Comments
 (0)