refactor(macos): change toStr string

This commit is contained in:
utox39
2025-05-10 19:30:04 +02:00
parent 34ff7e827b
commit c541e0588e
3 changed files with 8 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ pub const SystemUptime = struct {
minutes: i8,
pub fn toStr(self: SystemUptime, buf: []u8) ![]u8 {
return std.fmt.bufPrint(buf, "Uptime: {} days, {} hours, {} minutes", .{ self.days, self.hours, self.minutes });
return std.fmt.bufPrint(buf, "{} days, {} hours, {} minutes", .{ self.days, self.hours, self.minutes });
}
};
@@ -18,7 +18,7 @@ pub const KernelInfo = struct {
kernel_release: []u8,
pub fn toStr(self: KernelInfo, buf: []u8) ![]u8 {
return std.fmt.bufPrint(buf, "Kernel: {s} {s}", .{ self.kernel_name, self.kernel_release });
return std.fmt.bufPrint(buf, "{s} {s}", .{ self.kernel_name, self.kernel_release });
}
};