std.zon.parse: fix not initializing array sentinel

This commit is contained in:
Andrew Kelley 2025-09-03 18:30:40 -07:00
parent 772793c004
commit 09e4fc4dcf

View File

@ -786,6 +786,7 @@ const Parser = struct {
elem.* = try self.parseExpr(array_info.child, nodes.at(@intCast(i)));
}
if (array_info.sentinel()) |s| result[result.len] = s;
return result;
}