From 95fdbc579fc1df3c575baded7ec5edc1c3ce6e6d Mon Sep 17 00:00:00 2001 From: homersimpsons Date: Wed, 2 Apr 2025 17:22:17 +0200 Subject: [PATCH] pow: fix typo 0 instead of inf --- lib/std/math/pow.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/math/pow.zig b/lib/std/math/pow.zig index e2a4757dbe..acaafe7609 100644 --- a/lib/std/math/pow.zig +++ b/lib/std/math/pow.zig @@ -59,7 +59,7 @@ pub fn pow(comptime T: type, x: T, y: T) T { if (x == 0) { if (y < 0) { - // pow(+-0, y) = +- 0 for y an odd integer + // pow(+-0, y) = +-inf for y an odd integer if (isOddInteger(y)) { return math.copysign(math.inf(T), x); }