authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-01-14 18:11:17-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-01-14 18:11:17-05:00
log404c87b06afbeebfea6c839665918c7bd1328d74
treefa43af83b38033c192a69e185970a1f7cf0f41e8
parent5864d92b4049e6d60a21a3f22220464808dd0518
signature Commit is signed but in an unrecognized format.

fix incorrect parameter names for std.math.atan2


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

std/math/atan2.zig+3-3
...@@ -22,10 +22,10 @@ const std = @import("../index.zig");...@@ -22,10 +22,10 @@ const std = @import("../index.zig");
22const math = std.math;22const math = std.math;
23const assert = std.debug.assert;23const assert = std.debug.assert;
2424
25pub fn atan2(comptime T: type, x: T, y: T) T {25pub fn atan2(comptime T: type, y: T, x: T) T {
26 return switch (T) {26 return switch (T) {
27 f32 => atan2_32(x, y),27 f32 => atan2_32(y, x),
28 f64 => atan2_64(x, y),28 f64 => atan2_64(y, x),
29 else => @compileError("atan2 not implemented for " ++ @typeName(T)),29 else => @compileError("atan2 not implemented for " ++ @typeName(T)),
30 };30 };
31}31}