authorgravatar for emekankurumeh@outlook.comemekoi <emekankurumeh@outlook.com> 2018-10-27 12:58:40-05:00
committergravatar for emekankurumeh@outlook.comemekoi <emekankurumeh@outlook.com> 2018-10-27 12:58:40-05:00
logc7799ff2b237ab0f0ed5ac91d8875f01cb31dde8
tree586f4db77b69b47d7de78add29790386d8ff0cd9
parent395f3d946ad62eb881796044819194f649742a65

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