diff --git a/echo.zig b/echo.zig index 9b53c3e..6506078 100644 --- a/echo.zig +++ b/echo.zig @@ -51,7 +51,7 @@ pub fn main() !void { try option.append(a); } } else { - const length = std.math.min(arg.len, text.len - 1); + const length = @min(arg.len, text.len - 1); std.mem.copy(u8, text[0..length], arg[0..length]); text_len = length; } diff --git a/groups.zig b/groups.zig index e0b6eb7..0584dd8 100644 --- a/groups.zig +++ b/groups.zig @@ -51,7 +51,7 @@ pub fn main() !void { try option.append(a); } } else { - const length = std.math.min(arg.len, username.len - 1); + const length = @min(arg.len, username.len - 1); mem.copy(u8, username[0..length], arg[0..length]); username[length] = 0; } diff --git a/rm.zig b/rm.zig index c854a8f..c25ca06 100644 --- a/rm.zig +++ b/rm.zig @@ -102,7 +102,7 @@ pub fn main() !void { defer file.close(); const stat = try file.stat(); - if (stat.kind != .File) { + if (stat.kind != .file) { if (isrecur) { if (ischeck) { try stdout.print("rm: ディレクトリ '{s}' を削除しますか?\n", .{item});