mem.trimRight -> mem.trimEnd

This commit is contained in:
Halil Durak committed 2026-08-13 16:39:12 +03:00
1 parent 0055ed63fc
commit da96cffe9c
1 file changed
+1 -1
+1 -1
View File
@@ -296,7 +296,7 @@ fn stripInlineComment(line: []const u8) []const u8 {
var i: usize = 1;
while (i < line.len) : (i += 1) {
if (line[i] == '#' and std.ascii.isWhitespace(line[i - 1])) {
return std.mem.trimRight(u8, line[0..i], &std.ascii.whitespace);
return std.mem.trimEnd(u8, line[0..i], &std.ascii.whitespace);
}
}
return line;