We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28ebbd2 commit ba0a159Copy full SHA for ba0a159
src/gleam_stdlib.mjs
@@ -247,8 +247,8 @@ export function truncate(float) {
247
export function power(base, exponent) {
248
// It is checked in Gleam that:
249
// - 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).
+ // - The base is non-zero and the exponent is non-negative (otherwise
+ // the result will essentially be division by zero).
252
// It can thus be assumed that valid input is passed to the Math.pow
253
// function and a NaN or Infinity value will not be produced.
254
return Math.pow(base, exponent)
0 commit comments