| author | |
| committer | |
| log | ea65d770e41a2a7f4818de7a290b333da57c5c94 |
| tree | 66887d3e9daeab0aea3d71cf22f9cd90d582d3d4 |
| parent | 88adecd0f9a6e2fd9de65d0f1852bbde1e183590 |
| signature |
2 files changed, 2 insertions(+), 2 deletions(-)
README.md+1-1| ... | @@ -3,7 +3,7 @@ | ... | @@ -3,7 +3,7 @@ |
| 3 |  | 3 |  |
| 4 | [](https://github.com/nektro/zig-json/blob/master/LICENSE) | 4 | [](https://github.com/nektro/zig-json/blob/master/LICENSE) |
| 5 | [](https://github.com/sponsors/nektro) | 5 | [](https://github.com/sponsors/nektro) |
| 6 | [](https://ziglang.org/) | 6 | [](https://ziglang.org/) |
| 7 | [](https://github.com/nektro/zigmod) | 7 | [](https://github.com/nektro/zigmod) |
| 8 | 8 | ||
| 9 | A JSON library for inspecting arbitrary values. Optionally accepts trailing commas. | 9 | A JSON library for inspecting arbitrary values. Optionally accepts trailing commas. |
json.zig+1-1| ... | @@ -124,7 +124,7 @@ fn parseArray(alloc: std.mem.Allocator, p: *Parser) anyerror!?ValueIndex { | ... | @@ -124,7 +124,7 @@ fn parseArray(alloc: std.mem.Allocator, p: *Parser) anyerror!?ValueIndex { |
| 124 | 124 | ||
| 125 | var sfa = std.heap.stackFallback(std.heap.page_size_min, alloc); | 125 | var sfa = std.heap.stackFallback(std.heap.page_size_min, alloc); |
| 126 | const alloc_local = sfa.get(); | 126 | const alloc_local = sfa.get(); |
| 127 | var elements = std.ArrayListUnmanaged(ValueIndex){}; | 127 | var elements: std.ArrayListUnmanaged(ValueIndex) = .empty; |
| 128 | defer elements.deinit(alloc_local); | 128 | defer elements.deinit(alloc_local); |
| 129 | 129 | ||
| 130 | if (try p.parser.eatByte(']')) |_| { | 130 | if (try p.parser.eatByte(']')) |_| { |