Skip to content

Commit c1b992b

Browse files
authored
docs: change "capacity" to "length" for argument in Array's constructor (AssemblyScript#1816)
1 parent eca391b commit c1b992b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

std/assembly/index.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1586,8 +1586,7 @@ declare class Array<T> {
15861586
/** Current length of the array. */
15871587
length: i32;
15881588
/** Constructs a new array. */
1589-
constructor(capacity?: i32);
1590-
1589+
constructor(length?: i32);
15911590
at(index: i32): T;
15921591
fill(value: T, start?: i32, end?: i32): this;
15931592
every(callbackfn: (element: T, index: i32, array?: Array<T>) => bool): bool;

0 commit comments

Comments
 (0)