Skip to content

Commit ba0a159

Browse files
inoaslpil
authored andcommitted
division, consistency
1 parent 28ebbd2 commit ba0a159

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gleam_stdlib.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ export function truncate(float) {
247247
export function power(base, exponent) {
248248
// It is checked in Gleam that:
249249
// - The base is non-negative and that the exponent is not fractional.
250-
// - The base is not zero and the exponent is not negative (otherwise
251-
// the result will essentially be divion by zero).
250+
// - The base is non-zero and the exponent is non-negative (otherwise
251+
// the result will essentially be division by zero).
252252
// It can thus be assumed that valid input is passed to the Math.pow
253253
// function and a NaN or Infinity value will not be produced.
254254
return Math.pow(base, exponent)

0 commit comments

Comments
 (0)