Skip to content

Commit 1e75e41

Browse files
authored
Fix TypedArray::subarray docs (#2021)
Looks like these were mistakenly copy-pasted from the `TypedArray::set` method.
1 parent 93cb6cb commit 1e75e41

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/js-sys/src/lib.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -4847,8 +4847,9 @@ macro_rules! arrays {
48474847
#[wasm_bindgen(getter, method)]
48484848
pub fn buffer(this: &$name) -> ArrayBuffer;
48494849

4850-
/// The `subarray()` method stores multiple values in the typed array,
4851-
/// reading input values from a specified array.
4850+
/// The `subarray()` method returns a new `TypedArray` on the same
4851+
/// `ArrayBuffer` store and with the same element types as for this
4852+
/// `TypedArray` object.
48524853
#[wasm_bindgen(method)]
48534854
pub fn subarray(this: &$name, begin: u32, end: u32) -> $name;
48544855

0 commit comments

Comments
 (0)