mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
update docgen to new for loop syntax
This commit is contained in:
parent
a005b5f198
commit
552e8095ae
@ -239,7 +239,7 @@ const Tokenizer = struct {
|
||||
.line_start = 0,
|
||||
.line_end = 0,
|
||||
};
|
||||
for (self.buffer) |c, i| {
|
||||
for (self.buffer, 0..) |c, i| {
|
||||
if (i == token.start) {
|
||||
loc.line_end = i;
|
||||
while (loc.line_end < self.buffer.len and self.buffer[loc.line_end] != '\n') : (loc.line_end += 1) {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user