authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-10-27 14:07:08-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2018-10-27 14:07:08-04:00
log0921a93c1cc0d66371f8689cf7a823cea8ecdb04
tree586f4db77b69b47d7de78add29790386d8ff0cd9
parent395f3d946ad62eb881796044819194f649742a65
parentc7799ff2b237ab0f0ed5ac91d8875f01cb31dde8
signature Signed by PGP key 4AEE18F83AFDEB23

Merge pull request #1686 from emekoi/comment-fix

fixed comments

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

std/math/powi.zig+2-2
......@@ -1,7 +1,7 @@
11// Special Cases:
22//
33// powi(x, +-0) = 1 for any x
4// powi(0, y) = 1 for any y
4// powi(0, y) = 0 for any y
55// powi(1, y) = 1 for any y
66// powi(-1, y) = -1 for for y an odd integer
77// powi(-1, y) = 1 for for y an even integer
......@@ -29,7 +29,7 @@ pub fn powi(comptime T: type, x: T, y: T) (error.{
2929 }
3030
3131 switch (x) {
32 // powi(0, y) = 1 for any y
32 // powi(0, y) = 0 for any y
3333 0 => return 0,
3434
3535 // powi(1, y) = 1 for any y