mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 19:22:31 +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
							
								
									fe3adfd960
								
							
						
					
					
						commit
						2c79aeb7ad
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue