From c7799ff2b237ab0f0ed5ac91d8875f01cb31dde8 Mon Sep 17 00:00:00 2001 From: emekoi Date: Sat, 27 Oct 2018 12:58:40 -0500 Subject: [PATCH] fixed comments --- std/math/powi.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/math/powi.zig b/std/math/powi.zig index c12cb3728..0f5f7af5f 100644 --- a/std/math/powi.zig +++ b/std/math/powi.zig @@ -1,7 +1,7 @@ // Special Cases: // // powi(x, +-0) = 1 for any x -// powi(0, y) = 1 for any y +// powi(0, y) = 0 for any y // powi(1, y) = 1 for any y // powi(-1, y) = -1 for for y an odd integer // 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.{ } switch (x) { - // powi(0, y) = 1 for any y + // powi(0, y) = 0 for any y 0 => return 0, // powi(1, y) = 1 for any y