diff --git a/tools/regz/src/gen.zig b/tools/regz/src/gen.zig index 5007e679..a85b9602 100644 --- a/tools/regz/src/gen.zig +++ b/tools/regz/src/gen.zig @@ -839,7 +839,7 @@ fn write_fields( next.size, }); try write_enum_fields(db, enum_id, writer); - try writer.writeAll("},\n},\n"); + try writer.writeAll("},\n"); } } else { try writer.print("{}: u{},\n", .{ std.zig.fmtId(name), next.size });