Fix TypedArray::subarray docs (#2021)

Looks like these were mistakenly copy-pasted from the `TypedArray::set` method.
This commit is contained in:
Ingvar Stepanyan 2020-03-02 14:57:03 +00:00 committed by GitHub
parent 93cb6cb65d
commit 1e75e415b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;