Skip to content

Commit

Permalink
chore: Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
spotandjake committed Nov 26, 2024
1 parent eb625c0 commit 6a5b65f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion compiler/test/stdlib/array.test.gr
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ assert Array.tryInit(0, n => Ok(n + 3)) == Ok([>])
assert Array.tryInit(3, n => if (n == 1) Err("stop") else Ok(n)) == Err("stop")
assert Array.tryInit(0, n => if (n == 1) Err("stop") else Ok(n)) == Ok([>])


// Array.get

assert Array.get(1, arr) == 2
Expand Down
2 changes: 1 addition & 1 deletion stdlib/array.gr
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ provide let tryInit = (length: Number, fn: Number => Result<a, b>) => {
ignore(Memory.decRef(WasmI32.load(array, _ARRAY_START_OFFSET + j)))
}
return Err(e)
}
},
}
}
return Ok(WasmI32.toGrain(array): Array<a>)
Expand Down

0 comments on commit 6a5b65f

Please sign in to comment.