From ea65d770e41a2a7f4818de7a290b333da57c5c94 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Wed, 3 Jun 2026 21:52:07 -0700 Subject: [PATCH] update to zig 0.16.0 --- README.md | 2 +- json.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5c139271e86c158c5054de977cd1ad1c78ea9f36..ea2d75d71c12d6c561484296cca71bbac234c68f 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ![loc](https://sloc.xyz/github/nektro/zig-json) [![license](https://img.shields.io/github/license/nektro/zig-json.svg)](https://github.com/nektro/zig-json/blob/master/LICENSE) [![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro) -[![Zig](https://img.shields.io/badge/Zig-0.15-f7a41d)](https://ziglang.org/) +[![Zig](https://img.shields.io/badge/Zig-0.16-f7a41d)](https://ziglang.org/) [![Zigmod](https://img.shields.io/badge/Zigmod-latest-f7a41d)](https://github.com/nektro/zigmod) A JSON library for inspecting arbitrary values. Optionally accepts trailing commas. diff --git a/json.zig b/json.zig index 58d6782c71b04fd6292112541384940d68e2cdf9..81db291b5d7cb9f0c71dfd67c7aded618065c77a 100644 --- a/json.zig +++ b/json.zig @@ -124,7 +124,7 @@ fn parseArray(alloc: std.mem.Allocator, p: *Parser) anyerror!?ValueIndex { var sfa = std.heap.stackFallback(std.heap.page_size_min, alloc); const alloc_local = sfa.get(); - var elements = std.ArrayListUnmanaged(ValueIndex){}; + var elements: std.ArrayListUnmanaged(ValueIndex) = .empty; defer elements.deinit(alloc_local); if (try p.parser.eatByte(']')) |_| { -- 2.54.0