╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ fetch_them_macos_headers.zig ─────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭ find file ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╮ ╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │ │ │http│ ssh │ │ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
251 const minor = std.math.cast(u8, parsed[1]) orelse return null; 252 const patch = std.math.cast(u8, parsed[2]) orelse return null; 253 return .{ .major = major, .minor = minor, .patch = patch }; 254 } 255 256 pub fn format( 257 v: Version, 258 writer: *Io.Writer, 259 ) Io.Writer.Error!void { 260 try writer.print("{d}.{d}.{d}", .{ v.major, v.minor, v.patch }); 261 } 262 }; 263