From b7dd57ac32bb120177ce5f3da1bedd1414743d37 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Thu, 11 Jul 2024 00:07:56 -0700 Subject: [PATCH] Fix zig build error on Windows --- src/string_immutable.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string_immutable.zig b/src/string_immutable.zig index f2e4b29b34..d6a6b82197 100644 --- a/src/string_immutable.zig +++ b/src/string_immutable.zig @@ -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]),