Commit 95fdbc579f

homersimpsons <guillaume.alabre@gmail.com>
2025-04-02 17:22:17
pow: fix typo 0 instead of inf
1 parent 0cd31fc
Changed files (1)
lib
std
math
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);
             }