3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-16 13:58:47 +00:00

json.h: Fix array template

Using `{begin|end}_object` inserts curly braces instead of square brackets, which can result in reordering (and may be syntactically incorrect?).
This commit is contained in:
Krystine Sherwin 2025-03-21 10:24:27 +13:00
parent 1f1eb1ab57
commit 31dba47521
No known key found for this signature in database

View file

@ -90,10 +90,10 @@ public:
template<typename T>
void array(const T &&values)
{
begin_object();
begin_array();
for (auto &item : values)
value(item);
end_object();
end_array();
}
};