endsWithAny -> endsWithAnyComptime

This commit is contained in:
Jarred Sumner
2021-09-21 18:07:23 -07:00
parent 5e634cd612
commit 42c1d54b3f
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {