Use an enum for Ref instead of a buggy packed struct

Fixes a printing bug with `Symbol`
This commit is contained in:
Jarred Sumner
2022-02-18 20:33:04 -08:00
parent 37aafb61be
commit 3a0577ba96
7 changed files with 161 additions and 156 deletions

View File

@@ -12,6 +12,7 @@ pub inline fn containsChar(self: string, char: u8) bool {
pub inline fn contains(self: string, str: string) bool {
return std.mem.indexOf(u8, self, str) != null;
}
pub const includes = contains;
pub inline fn containsAny(in: anytype, target: string) bool {
for (in) |str| if (contains(str, target)) return true;