diff options
| author | Robin Voetter <robin@voetter.nl> | 2019-12-09 21:56:19 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-12-10 11:09:41 -0500 |
| commit | 4b4fbe388732da795c924293b4d1af3d9ca5ea69 (patch) | |
| tree | 278ddda90440c1f68aee5acb7318371aa2a2a7ad /lib/std/math/big | |
| parent | f0ee0688f20dd012b4e069324abdba081ff19369 (diff) | |
| download | zig-4b4fbe388732da795c924293b4d1af3d9ca5ea69.tar.gz zig-4b4fbe388732da795c924293b4d1af3d9ca5ea69.zip | |
Replace @typeOf with @TypeOf in all zig source
This change was mostly made with `zig fmt` and this also modified some whitespace. Note that in some files, `zig fmt` produced incorrect code, so the change was made manually.
Diffstat (limited to 'lib/std/math/big')
| -rw-r--r-- | lib/std/math/big/int.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/math/big/int.zig b/lib/std/math/big/int.zig index 0d0b186332..ef83aceb2f 100644 --- a/lib/std/math/big/int.zig +++ b/lib/std/math/big/int.zig @@ -268,7 +268,7 @@ pub const Int = struct { /// Sets an Int to value. Value must be an primitive integer type. pub fn set(self: *Int, value: var) Allocator.Error!void { self.assertWritable(); - const T = @typeOf(value); + const T = @TypeOf(value); switch (@typeInfo(T)) { TypeId.Int => |info| { @@ -522,7 +522,7 @@ pub const Int = struct { options: std.fmt.FormatOptions, context: var, comptime FmtError: type, - output: fn (@typeOf(context), []const u8) FmtError!void, + output: fn (@TypeOf(context), []const u8) FmtError!void, ) FmtError!void { self.assertWritable(); // TODO look at fmt and support other bases |
