Skip to content

Commit

Permalink
fix tabulateVar
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity authored Nov 4, 2023
1 parent 80ededb commit 7f59bfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Array.mo
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module {
// FIXME add this as a primitive in the RTS
if (size == 0) { return [var] };
let array = Prim.Array_init<X>(size, generator 0);
var i = 0;
var i = 1;
while (i < size) {
array[i] := generator i;
i += 1
Expand Down

0 comments on commit 7f59bfc

Please sign in to comment.