From 1e75e415b3ae6196135b704766d7de713945180c Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Mon, 2 Mar 2020 14:57:03 +0000 Subject: [PATCH] Fix `TypedArray::subarray` docs (#2021) Looks like these were mistakenly copy-pasted from the `TypedArray::set` method. --- crates/js-sys/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/js-sys/src/lib.rs b/crates/js-sys/src/lib.rs index bc8acc99..b81fe65f 100644 --- a/crates/js-sys/src/lib.rs +++ b/crates/js-sys/src/lib.rs @@ -4847,8 +4847,9 @@ macro_rules! arrays { #[wasm_bindgen(getter, method)] pub fn buffer(this: &$name) -> ArrayBuffer; - /// The `subarray()` method stores multiple values in the typed array, - /// reading input values from a specified array. + /// The `subarray()` method returns a new `TypedArray` on the same + /// `ArrayBuffer` store and with the same element types as for this + /// `TypedArray` object. #[wasm_bindgen(method)] pub fn subarray(this: &$name, begin: u32, end: u32) -> $name;