authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-02-22 15:53:36-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-02-22 17:09:20-08:00
loged55b2ef1723c29edf53ba332e7cb18c1c738bff
treedbc672032c0b4822614d268a6e41c8335540aaf3
parent8469a44c9cb5110f8db24c26f5f50ae91e35b3ce

update to new pop API


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/zig/render.zig+2-2
......@@ -372,7 +372,7 @@ fn renderExpression(r: *Render, node: Ast.Node.Index, space: Space) Error!void {
372372 if (!ais.indentStackEmpty() and
373373 token_tags[i] != .colon and
374374 ((token_tags[i] != .semicolon and token_tags[i] != .comma) or
375 ais.lastSpaceModeIndent() < ais.currentIndent()))
375 ais.lastSpaceModeIndent() < ais.currentIndent()))
376376 {
377377 ais.popIndent();
378378 try ais.pushIndent(.normal);
......@@ -3509,7 +3509,7 @@ fn AutoIndentingStream(comptime UnderlyingWriter: type) type {
35093509 }
35103510
35113511 pub fn popIndent(self: *Self) void {
3512 if (self.indent_stack.pop().realized) {
3512 if (self.indent_stack.pop().?.realized) {
35133513 assert(self.indent_count > 0);
35143514 self.indent_count -= 1;
35153515 }