diff options
author | inoas <mail@inoas.com> | 2022-06-09 10:38:32 +0200 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2022-06-10 08:42:42 +0100 |
commit | ba0a15976a908e1d4b5a13fc88b533adf2c35f85 (patch) | |
tree | 29569b99c015c3ebe4ac8337743582062f437602 /src/gleam_stdlib.mjs | |
parent | 28ebbd29a171ceebe74c075f6a05ef86b727e002 (diff) | |
download | gleam_stdlib-ba0a15976a908e1d4b5a13fc88b533adf2c35f85.tar.gz gleam_stdlib-ba0a15976a908e1d4b5a13fc88b533adf2c35f85.zip |
division, consistency
Diffstat (limited to 'src/gleam_stdlib.mjs')
-rw-r--r-- | src/gleam_stdlib.mjs | 4 |
1 files changed, 2 insertions, 2 deletions
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) |