diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-05-30 16:09:11 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-05-30 16:09:11 -0400 |
| commit | ea58f4a5a95662637d2142727a0452542bcdb196 (patch) | |
| tree | d72b41fea06f8526e899014fd10c2bf9d1a4d759 /std/event.zig | |
| parent | b082cd4580890190218f876bf28816b4878ae85c (diff) | |
| download | zig-ea58f4a5a95662637d2142727a0452542bcdb196.tar.gz zig-ea58f4a5a95662637d2142727a0452542bcdb196.zip | |
run zig fmt on the codebase
Diffstat (limited to 'std/event.zig')
| -rw-r--r-- | std/event.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/event.zig b/std/event.zig index 6ee8ab35f1..4604eb8d02 100644 --- a/std/event.zig +++ b/std/event.zig @@ -6,7 +6,7 @@ const mem = std.mem; const posix = std.os.posix; pub const TcpServer = struct { - handleRequestFn: async<&mem.Allocator> fn(&TcpServer, &const std.net.Address, &const std.os.File) void, + handleRequestFn: async<&mem.Allocator> fn (&TcpServer, &const std.net.Address, &const std.os.File) void, loop: &Loop, sockfd: i32, @@ -32,7 +32,7 @@ pub const TcpServer = struct { }; } - pub fn listen(self: &TcpServer, address: &const std.net.Address, handleRequestFn: async<&mem.Allocator> fn(&TcpServer, &const std.net.Address, &const std.os.File) void) !void { + pub fn listen(self: &TcpServer, address: &const std.net.Address, handleRequestFn: async<&mem.Allocator> fn (&TcpServer, &const std.net.Address, &const std.os.File) void) !void { self.handleRequestFn = handleRequestFn; try std.os.posixBind(self.sockfd, &address.os_addr); |
