diff options
| author | Techatrix <19954306+Techatrix@users.noreply.github.com> | 2023-07-04 21:10:39 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-07-10 10:50:57 -0700 |
| commit | 3bf0b8eada9ec97d4413fed5be29f5e2af30dce1 (patch) | |
| tree | abb28345bbfebf4e87a77156b94bb2426da8533d /lib/std/json/stringify.zig | |
| parent | 2b8c1f0d4619565255b9faff2d24bc2360012552 (diff) | |
| download | zig-3bf0b8eada9ec97d4413fed5be29f5e2af30dce1.tar.gz zig-3bf0b8eada9ec97d4413fed5be29f5e2af30dce1.zip | |
explicitly specify error set of `std.json.stringify`
Diffstat (limited to 'lib/std/json/stringify.zig')
| -rw-r--r-- | lib/std/json/stringify.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/json/stringify.zig b/lib/std/json/stringify.zig index c8084a7b61..17ab3a1eb5 100644 --- a/lib/std/json/stringify.zig +++ b/lib/std/json/stringify.zig @@ -140,7 +140,7 @@ pub fn stringify( value: anytype, options: StringifyOptions, out_stream: anytype, -) !void { +) @TypeOf(out_stream).Error!void { const T = @TypeOf(value); switch (@typeInfo(T)) { .Float, .ComptimeFloat => { |
