mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-09-28 15:35:43 -04:00
mem.trimRight -> mem.trimEnd
This commit is contained in:
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user