Skip to content

Commit

Permalink
Update std.builtin.Type field names
Browse files Browse the repository at this point in the history
  • Loading branch information
linusg authored and ikskuh committed Aug 30, 2024
1 parent 0f3e217 commit 6aafc4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/token.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const std = @import("std");
const Location = @import("Location.zig");

pub fn Token(comptime Type: type) type {
if (@typeInfo(Type) != .Enum)
if (@typeInfo(Type) != .@"enum")
@compileError("Type must be a enum type!");
return struct {
/// The location of the token in the source stream
Expand Down

0 comments on commit 6aafc4c

Please sign in to comment.