mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-02 20:31:22 +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
1 changed files with 2 additions and 2 deletions
|
@ -90,10 +90,10 @@ public:
|
||||||
template<typename T>
|
template<typename T>
|
||||||
void array(const T &&values)
|
void array(const T &&values)
|
||||||
{
|
{
|
||||||
begin_object();
|
begin_array();
|
||||||
for (auto &item : values)
|
for (auto &item : values)
|
||||||
value(item);
|
value(item);
|
||||||
end_object();
|
end_array();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue