diff options
author | 2021-09-21 18:07:23 -0700 | |
---|---|---|
committer | 2021-09-21 18:07:23 -0700 | |
commit | 42c1d54b3f3890e97cd0d5665fcd95fe59b462cf (patch) | |
tree | 2e91deb5755e944e1b10ba2f5f473dbbe47784f8 /src/string_immutable.zig | |
parent | 5e634cd612fa6320ec0f72eeac2a4c3a2d2f1869 (diff) | |
download | bun-42c1d54b3f3890e97cd0d5665fcd95fe59b462cf.tar.gz bun-42c1d54b3f3890e97cd0d5665fcd95fe59b462cf.tar.zst bun-42c1d54b3f3890e97cd0d5665fcd95fe59b462cf.zip |
`endsWithAny` -> `endsWithAnyComptime`
Diffstat (limited to 'src/string_immutable.zig')
-rw-r--r-- | src/string_immutable.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_immutable.zig b/src/string_immutable.zig index b657c26cd..7010cd538 100644 --- a/src/string_immutable.zig +++ b/src/string_immutable.zig @@ -252,7 +252,7 @@ pub fn quotedAlloc(allocator: *std.mem.Allocator, self: string) !string { } pub fn endsWithAnyComptime(self: string, comptime str: string) bool { - if (str.len < 10) { + if (comptime str.len < 10) { const last = self[self.len - 1]; inline while (str) |char| { if (char == last) { |