Skip to content

Commit 95fdbc5

Browse files
homersimpsonsalexrp
authored andcommitted
pow: fix typo 0 instead of inf
1 parent 0cd31fc commit 95fdbc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/math/pow.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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
}

0 commit comments

Comments
 (0)