mirror of
https://github.com/ziglang/zig.git
synced 2025-02-18 18:40:15 +00:00
std.zig.render: replace magic number 4
with indent_delta
.
This commit is contained in:
parent
95bb53653d
commit
6b1f509422
@ -3207,7 +3207,7 @@ fn anythingBetween(tree: Ast, start_token: Ast.TokenIndex, end_token: Ast.TokenI
|
||||
|
||||
fn writeFixingWhitespace(writer: std.ArrayList(u8).Writer, slice: []const u8) Error!void {
|
||||
for (slice) |byte| switch (byte) {
|
||||
'\t' => try writer.writeAll(" " ** 4),
|
||||
'\t' => try writer.writeAll(" " ** indent_delta),
|
||||
'\r' => {},
|
||||
else => try writer.writeByte(byte),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user