ArrayList.writer() removed in 57dbc9e74a

This commit is contained in:
Meghan Denny 2026-02-08 21:24:22 -08:00
parent e4438a58ae
commit c99b43e3da

View file

@ -38,9 +38,8 @@ pub fn fileSourceLineNumbersHtml(
const ast = file_index.get_ast();
const first_token_line = ast.tokenLocation(0, ast.firstToken(root_node)).line;
const last_token_line = ast.tokenLocation(0, ast.lastToken(root_node)).line;
const writer = out.writer(gpa);
for (first_token_line..last_token_line + 1) |i| {
try std.fmt.format(writer, "<span>{d}</span>\n", .{i + 1});
try out.print(gpa, "<span>{d}</span>\n", .{i + 1});
}
}