aboutsummaryrefslogtreecommitdiff
path: root/src/string_immutable.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/string_immutable.zig')
-rw-r--r--src/string_immutable.zig2
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) {