We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cd31fc commit 95fdbc5Copy full SHA for 95fdbc5
lib/std/math/pow.zig
@@ -59,7 +59,7 @@ pub fn pow(comptime T: type, x: T, y: T) T {
59
60
if (x == 0) {
61
if (y < 0) {
62
- // pow(+-0, y) = +- 0 for y an odd integer
+ // pow(+-0, y) = +-inf for y an odd integer
63
if (isOddInteger(y)) {
64
return math.copysign(math.inf(T), x);
65
}
0 commit comments