aboutsummaryrefslogtreecommitdiff
path: root/lib/std/event
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/event
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/event')
-rw-r--r--lib/std/event/group.zig2
-rw-r--r--lib/std/event/loop.zig2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/event/group.zig b/lib/std/event/group.zig
index d9076ef78d..2668096615 100644
--- a/lib/std/event/group.zig
+++ b/lib/std/event/group.zig
@@ -61,7 +61,7 @@ pub fn Group(comptime ReturnType: type) type {
/// `func` must be async and have return type `ReturnType`.
/// Thread-safe.
pub fn call(self: *Self, comptime func: var, args: var) error{OutOfMemory}!void {
- var frame = try self.allocator.create(@typeOf(@call(.{ .modifier = .async_kw }, func, args)));
+ var frame = try self.allocator.create(@TypeOf(@call(.{ .modifier = .async_kw }, func, args)));
errdefer self.allocator.destroy(frame);
const node = try self.allocator.create(AllocStack.Node);
errdefer self.allocator.destroy(node);
diff --git a/lib/std/event/loop.zig b/lib/std/event/loop.zig
index 3a6cced79b..e80266c640 100644
--- a/lib/std/event/loop.zig
+++ b/lib/std/event/loop.zig
@@ -42,7 +42,7 @@ pub const Loop = struct {
},
else => {},
};
- pub const Overlapped = @typeOf(overlapped_init);
+ pub const Overlapped = @TypeOf(overlapped_init);
pub const Id = enum {
Basic,