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 @@...@@ -1,7 +1,7 @@
1// Special Cases:1// Special Cases:
2//2//
3// powi(x, +-0) = 1 for any x3// powi(x, +-0) = 1 for any x
4// powi(0, y) = 1 for any y4// powi(0, y) = 0 for any y
5// powi(1, y) = 1 for any y5// powi(1, y) = 1 for any y
6// powi(-1, y) = -1 for for y an odd integer6// powi(-1, y) = -1 for for y an odd integer
7// powi(-1, y) = 1 for for y an even integer7// 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.{...@@ -29,7 +29,7 @@ pub fn powi(comptime T: type, x: T, y: T) (error.{
29 }29 }
3030
31 switch (x) {31 switch (x) {
32 // powi(0, y) = 1 for any y32 // powi(0, y) = 0 for any y
33 0 => return 0,33 0 => return 0,
3434
35 // powi(1, y) = 1 for any y35 // powi(1, y) = 1 for any y