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 {...@@ -372,7 +372,7 @@ fn renderExpression(r: *Render, node: Ast.Node.Index, space: Space) Error!void {
372 if (!ais.indentStackEmpty() and372 if (!ais.indentStackEmpty() and
373 token_tags[i] != .colon and373 token_tags[i] != .colon and
374 ((token_tags[i] != .semicolon and token_tags[i] != .comma) or374 ((token_tags[i] != .semicolon and token_tags[i] != .comma) or
375 ais.lastSpaceModeIndent() < ais.currentIndent()))375 ais.lastSpaceModeIndent() < ais.currentIndent()))
376 {376 {
377 ais.popIndent();377 ais.popIndent();
378 try ais.pushIndent(.normal);378 try ais.pushIndent(.normal);
...@@ -3509,7 +3509,7 @@ fn AutoIndentingStream(comptime UnderlyingWriter: type) type {...@@ -3509,7 +3509,7 @@ fn AutoIndentingStream(comptime UnderlyingWriter: type) type {
3509 }3509 }
35103510
3511 pub fn popIndent(self: *Self) void {3511 pub fn popIndent(self: *Self) void {
3512 if (self.indent_stack.pop().realized) {3512 if (self.indent_stack.pop().?.realized) {
3513 assert(self.indent_count > 0);3513 assert(self.indent_count > 0);
3514 self.indent_count -= 1;3514 self.indent_count -= 1;
3515 }3515 }