From ba0a15976a908e1d4b5a13fc88b533adf2c35f85 Mon Sep 17 00:00:00 2001 From: inoas Date: Thu, 9 Jun 2022 10:38:32 +0200 Subject: division, consistency --- src/gleam_stdlib.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gleam_stdlib.mjs b/src/gleam_stdlib.mjs index 35c31c4..dac8d58 100644 --- a/src/gleam_stdlib.mjs +++ b/src/gleam_stdlib.mjs @@ -247,8 +247,8 @@ export function truncate(float) { export function power(base, exponent) { // It is checked in Gleam that: // - The base is non-negative and that the exponent is not fractional. - // - The base is not zero and the exponent is not negative (otherwise - // 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). // It can thus be assumed that valid input is passed to the Math.pow // function and a NaN or Infinity value will not be produced. return Math.pow(base, exponent) -- cgit v1.2.3