From 3f420657d561881f121dec5a6a9a07735fb0956b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Fri, 28 Jul 2023 12:41:36 +0900 Subject: [PATCH] =?UTF-8?q?zig=200.11.0-dev.4282+0f21d3d4d=E3=81=AB?= =?UTF-8?q?=E3=83=90=E3=83=BC=E3=82=B8=E3=83=A7=E3=83=B3=E3=82=A2=E3=83=83?= =?UTF-8?q?=E3=83=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- echo.zig | 2 +- groups.zig | 2 +- rm.zig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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});