aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math/big
diff options
context:
space:
mode:
authorRobin Voetter <robin@voetter.nl>2019-12-09 21:56:19 +0100
committerAndrew Kelley <andrew@ziglang.org>2019-12-10 11:09:41 -0500
commit4b4fbe388732da795c924293b4d1af3d9ca5ea69 (patch)
tree278ddda90440c1f68aee5acb7318371aa2a2a7ad /lib/std/math/big
parentf0ee0688f20dd012b4e069324abdba081ff19369 (diff)
downloadzig-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.zig4
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