diff options
| author | aiz <78422626+aizawey672@users.noreply.github.com> | 2021-05-18 02:57:51 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-17 21:57:51 +0200 |
| commit | 5414bd48edd460ae8667c811e13aa9b5d9fab919 (patch) | |
| tree | e87302fc0d1c53518474ef704ec9e64e9e49424c /lib/std/math/complex/abs.zig | |
| parent | 04d95ea4192a7f70e7c11b8ee67d237cf38da9b7 (diff) | |
| download | zig-5414bd48edd460ae8667c811e13aa9b5d9fab919.tar.gz zig-5414bd48edd460ae8667c811e13aa9b5d9fab919.zip | |
std.math.Complex: Change `new()` to `init()`
Diffstat (limited to 'lib/std/math/complex/abs.zig')
| -rw-r--r-- | lib/std/math/complex/abs.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/math/complex/abs.zig b/lib/std/math/complex/abs.zig index a2678d21db..6890d15f8a 100644 --- a/lib/std/math/complex/abs.zig +++ b/lib/std/math/complex/abs.zig @@ -18,7 +18,7 @@ pub fn abs(z: anytype) @TypeOf(z.re) { const epsilon = 0.0001; test "complex.cabs" { - const a = Complex(f32).new(5, 3); + const a = Complex(f32).init(5, 3); const c = abs(a); try testing.expect(math.approxEqAbs(f32, c, 5.83095, epsilon)); } |
