Skip to content

Commit c128403

Browse files
committed
Update to Zig master
1 parent 1a38888 commit c128403

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Enemy.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub const Type = enum {
1414
pub fn jsonStringify(value: Type, options: std.json.StringifyOptions, out_stream: anytype) !void {
1515
_ = options;
1616
try out_stream.writeByte('"');
17-
try out_stream.writeAll(std.meta.tagName(value));
17+
try out_stream.writeAll(@tagName(value));
1818
try out_stream.writeByte('"');
1919
}
2020
};

src/Player.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub const State = enum {
2020
pub fn jsonStringify(value: State, options: std.json.StringifyOptions, out_stream: anytype) !void {
2121
_ = options;
2222
try out_stream.writeByte('"');
23-
try out_stream.writeAll(std.meta.tagName(value));
23+
try out_stream.writeAll(@tagName(value));
2424
try out_stream.writeByte('"');
2525
}
2626
};

src/main.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const GameState = enum {
5454
pub fn jsonStringify(value: GameState, options: std.json.StringifyOptions, out_stream: anytype) !void {
5555
_ = options;
5656
try out_stream.writeByte('"');
57-
try out_stream.writeAll(std.meta.tagName(value));
57+
try out_stream.writeAll(@tagName(value));
5858
try out_stream.writeByte('"');
5959
}
6060
};

0 commit comments

Comments
 (0)