diff options
author | 2021-11-15 05:15:21 -0800 | |
---|---|---|
committer | 2021-12-16 19:18:51 -0800 | |
commit | 1610ff33ea5d8a1e6d66960ba8411baf9aea1d3e (patch) | |
tree | ce070e6f76f9b0a37e3cfcba4b85358e892404b0 /src/string_immutable.zig | |
parent | b5fd121f262d0dbeb14ce97487b5b299f1e62774 (diff) | |
download | bun-1610ff33ea5d8a1e6d66960ba8411baf9aea1d3e.tar.gz bun-1610ff33ea5d8a1e6d66960ba8411baf9aea1d3e.tar.zst bun-1610ff33ea5d8a1e6d66960ba8411baf9aea1d3e.zip |
[bun install] some things install
Diffstat (limited to 'src/string_immutable.zig')
-rw-r--r-- | src/string_immutable.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string_immutable.zig b/src/string_immutable.zig index 7c9b427c4..6657dc27e 100644 --- a/src/string_immutable.zig +++ b/src/string_immutable.zig @@ -257,8 +257,8 @@ pub inline fn endsWith(self: string, str: string) bool { return str.len == 0 or @call(.{ .modifier = .always_inline }, std.mem.endsWith, .{ u8, self, str }); } -pub inline fn endsWithComptime(self: string, comptime str: antype) bool { - return self.len >= str.len and strings.eqlComptimeIgnoreLen(self[self.len - str.len .. self.len], comptime str); +pub inline fn endsWithComptime(self: string, comptime str: anytype) bool { + return self.len >= str.len and eqlComptimeIgnoreLen(self[self.len - str.len .. self.len], comptime str); } pub inline fn startsWithChar(self: string, char: u8) bool { |