mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 01:04:43 +01:00
ArrayList.writer() removed in 57dbc9e74a
This commit is contained in:
parent
e4438a58ae
commit
c99b43e3da
1 changed files with 1 additions and 2 deletions
|
|
@ -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});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue