x: fmt source code

This commit is contained in:
lithdew 2021-04-22 14:53:44 +09:00
parent b435d7fa60
commit 98706c9686
4 changed files with 6 additions and 6 deletions

View File

@ -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);
}

View File

@ -1 +1 @@
pub const os = @import("x/os/os.zig");
pub const os = @import("x/os/os.zig");

View File

@ -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();
}
}

View File

@ -6,4 +6,4 @@ pub const Socket = @import("Socket.zig");
test {
testing.refAllDecls(@This());
}
}