Skip to content

Commit 1775461

Browse files
committed
Update std.builtin.Type field names
See: ziglang/zig#21225
1 parent 0f3e217 commit 1775461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/token.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const std = @import("std");
33
const Location = @import("Location.zig");
44

55
pub fn Token(comptime Type: type) type {
6-
if (@typeInfo(Type) != .Enum)
6+
if (@typeInfo(Type) != .@"enum")
77
@compileError("Type must be a enum type!");
88
return struct {
99
/// The location of the token in the source stream

0 commit comments

Comments
 (0)