authorgravatar for yujiri@disroot.orgyujiri8 <yujiri@disroot.org> 2023-07-03 19:26:11-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2023-07-03 19:26:11-04:00
logb26fa4ec4baff7af8023f64230cbc0bdf1c99433
tree63f91180a3444b2b2c8b2c2b8e4a75a51bb251a7
parent17890f6b8a9a91c780377ac6cdcb22fc4180e929
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

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


1 files changed, 2 insertions(+), 0 deletions(-)

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