authorgravatar for guillaume.alabre@gmail.comhomersimpsons <guillaume.alabre@gmail.com> 2025-04-02 17:22:17+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-04-05 21:20:10+02:00
log95fdbc579fc1df3c575baded7ec5edc1c3ce6e6d
treedd882464076f187383ad03ef82fe4036a8843842
parent0cd31fc7ff157551cfbba5da35cd79f118d2a2e3

pow: fix typo 0 instead of inf


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/math/pow.zig+1-1
......@@ -59,7 +59,7 @@ pub fn pow(comptime T: type, x: T, y: T) T {
5959
6060 if (x == 0) {
6161 if (y < 0) {
62 // pow(+-0, y) = +- 0 for y an odd integer
62 // pow(+-0, y) = +-inf for y an odd integer
6363 if (isOddInteger(y)) {
6464 return math.copysign(math.inf(T), x);
6565 }