From 98706c968677caafeb12c56c884b7cc952c696bc Mon Sep 17 00:00:00 2001 From: lithdew Date: Thu, 22 Apr 2021 14:53:44 +0900 Subject: [PATCH] x: fmt source code --- lib/std/os/bits/openbsd.zig | 2 +- lib/std/x.zig | 2 +- lib/std/x/os/Socket.zig | 6 +++--- lib/std/x/os/os.zig | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/std/os/bits/openbsd.zig b/lib/std/os/bits/openbsd.zig index 8d1e74ec20..1aa5ce1c9c 100644 --- a/lib/std/os/bits/openbsd.zig +++ b/lib/std/os/bits/openbsd.zig @@ -805,7 +805,7 @@ comptime { if (@sizeOf(usize) == 4) std.debug.assert(@sizeOf(siginfo_t) == 128) else - // Take into account the padding between errno and data fields. + // Take into account the padding between errno and data fields. std.debug.assert(@sizeOf(siginfo_t) == 136); } diff --git a/lib/std/x.zig b/lib/std/x.zig index 4053bcd063..df7debf121 100644 --- a/lib/std/x.zig +++ b/lib/std/x.zig @@ -1 +1 @@ -pub const os = @import("x/os/os.zig"); \ No newline at end of file +pub const os = @import("x/os/os.zig"); diff --git a/lib/std/x/os/Socket.zig b/lib/std/x/os/Socket.zig index 4242a89d7f..3f1971a877 100644 --- a/lib/std/x/os/Socket.zig +++ b/lib/std/x/os/Socket.zig @@ -12,7 +12,7 @@ const Socket = @This(); /// A socket-address pair. pub const Connection = struct { socket: Socket, - address: net.Address, + address: net.Address, }; /// The underlying handle of a socket. @@ -231,7 +231,7 @@ test { } test "socket/linux: set read timeout of 1 millisecond on blocking socket" { - if (builtin.os.tag != .linux) return error.SkipZigTest; + if (builtin.os.tag != .linux) return error.SkipZigTest; const a = try Socket.init(os.AF_INET, os.SOCK_STREAM | os.SOCK_CLOEXEC, os.IPPROTO_TCP); defer a.deinit(); @@ -273,4 +273,4 @@ test "socket/linux: create non-blocking socket pair" { const ab = try a.accept(os.SOCK_NONBLOCK | os.SOCK_CLOEXEC); defer ab.socket.deinit(); -} \ No newline at end of file +} diff --git a/lib/std/x/os/os.zig b/lib/std/x/os/os.zig index 6f4417c081..1d1b8edc7c 100644 --- a/lib/std/x/os/os.zig +++ b/lib/std/x/os/os.zig @@ -6,4 +6,4 @@ pub const Socket = @import("Socket.zig"); test { testing.refAllDecls(@This()); -} \ No newline at end of file +}