aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug/SelfInfo.zig
diff options
context:
space:
mode:
authorMeghan Denny <hello@nektro.net>2025-02-09 20:21:31 -0800
committerGitHub <noreply@github.com>2025-02-10 04:21:31 +0000
commit91424823724de866776c8b6a999ea45f1ca9d374 (patch)
tree43c794431c7e5d83dc434117cca5884d8e01c672 /lib/std/debug/SelfInfo.zig
parent75df7e502c05e7e6a9b00a5a28854ae4a1aa8ea6 (diff)
downloadzig-91424823724de866776c8b6a999ea45f1ca9d374.tar.gz
zig-91424823724de866776c8b6a999ea45f1ca9d374.zip
std.ArrayList: popOrNull() -> pop() [v2] (#22720)
Diffstat (limited to 'lib/std/debug/SelfInfo.zig')
-rw-r--r--lib/std/debug/SelfInfo.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/debug/SelfInfo.zig b/lib/std/debug/SelfInfo.zig
index b51a8f18d2..3c4260b212 100644
--- a/lib/std/debug/SelfInfo.zig
+++ b/lib/std/debug/SelfInfo.zig
@@ -2138,7 +2138,7 @@ pub const VirtualMachine = struct {
self.current_row.copy_on_write = true;
},
.restore_state => {
- const restored_columns = self.stack.popOrNull() orelse return error.InvalidOperation;
+ const restored_columns = self.stack.pop() orelse return error.InvalidOperation;
self.columns.shrinkRetainingCapacity(self.columns.items.len - self.current_row.columns.len);
try self.columns.ensureUnusedCapacity(allocator, restored_columns.len);