aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2023-05-20 23:06:42 +0100
committerLinus Groh <mail@linusgroh.de>2023-05-25 20:17:07 +0100
commit4159add4abe92e903d8797a005344d8325def2fc (patch)
treea18989d582306738a92706b1d5cfc846d229ad11 /src/main.zig
parente96de1b63688d3a92932fe4afdfe37dbe2315f53 (diff)
downloadzig-4159add4abe92e903d8797a005344d8325def2fc.tar.gz
zig-4159add4abe92e903d8797a005344d8325def2fc.zip
std.fs.file: Rename File.Kind enum values to snake case
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.zig b/src/main.zig
index afda88cebd..f7afbe767b 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -4830,11 +4830,11 @@ fn fmtPathDir(
var dir_it = iterable_dir.iterate();
while (try dir_it.next()) |entry| {
- const is_dir = entry.kind == .Directory;
+ const is_dir = entry.kind == .directory;
if (is_dir and (mem.eql(u8, entry.name, "zig-cache") or mem.eql(u8, entry.name, "zig-out"))) continue;
- if (is_dir or entry.kind == .File and (mem.endsWith(u8, entry.name, ".zig") or mem.endsWith(u8, entry.name, ".zon"))) {
+ if (is_dir or entry.kind == .file and (mem.endsWith(u8, entry.name, ".zig") or mem.endsWith(u8, entry.name, ".zon"))) {
const full_path = try fs.path.join(fmt.gpa, &[_][]const u8{ file_path, entry.name });
defer fmt.gpa.free(full_path);
@@ -4864,7 +4864,7 @@ fn fmtPathFile(
const stat = try source_file.stat();
- if (stat.kind == .Directory)
+ if (stat.kind == .directory)
return error.IsDir;
const gpa = fmt.gpa;