Fix zig build error on Windows

This commit is contained in:
Jarred Sumner
2024-07-11 00:07:56 -07:00
parent cf1c7772f3
commit b7dd57ac32

View File

@@ -80,7 +80,7 @@ fn literalLength(comptime T: type, comptime str: string) usize {
pub const toUTF16LiteralZ = toUTF16Literal;
pub const OptionalUsize = std.meta.Int(.unsigned, @bitSizeOf(usize) - 1);
pub fn indexOfAny(slice: string, comptime str: anytype) ?OptionalUsize {
pub fn indexOfAny(slice: string, comptime str: []const u8) ?OptionalUsize {
switch (comptime str.len) {
0 => @compileError("str cannot be empty"),
1 => return indexOfChar(slice, str[0]),