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:
parent
1f1eb1ab57
commit
31dba47521
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue