Skip to content

Commit

Permalink
explicitly specify error set of std.json.stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix committed Jul 4, 2023
1 parent d3eaa75 commit fbf2e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/json/stringify.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit fbf2e19

Please sign in to comment.