zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit b26fa4ec4baff7af8023f64230cbc0bdf1c99433 (tree)
parent 17890f6b8a9a91c780377ac6cdcb22fc4180e929
Author: yujiri8 <yujiri@disroot.org>
Date:   Mon,  3 Jul 2023 19:26:11 -0400

add docstring to std.json.stringify (#16241)


Diffstat:
Mlib/std/json/stringify.zig | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/std/json/stringify.zig b/lib/std/json/stringify.zig @@ -134,6 +134,8 @@ pub fn encodeJsonStringChars(chars: []const u8, options: StringifyOptions, write } } +/// If `value` has a method called `jsonStringify`, this will call that method instead of the +/// default implementation, passing it the `options` and `out_stream` parameters. pub fn stringify( value: anytype, options: StringifyOptions,