Skip to content

Commit

Permalink
Fix zig build error on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Jul 11, 2024
1 parent cf1c777 commit b7dd57a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/string_immutable.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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]),
Expand Down

0 comments on commit b7dd57a

Please sign in to comment.