commit 98706c968677caafeb12c56c884b7cc952c696bc (tree)
parent b435d7fa6050a8867b7228eeaa71a399a9d8d7c1
Author: lithdew <kenta@lithdew.net>
Date: Thu, 22 Apr 2021 14:53:44 +0900
x: fmt source code
Diffstat:
4 files changed, 6 insertions(+), 9 deletions(-)
diff --git 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
@@ -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
@@ -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
@@ -6,4 +6,4 @@ pub const Socket = @import("Socket.zig");
test {
testing.refAllDecls(@This());
-}
-\ No newline at end of file
+}