diff options
| author | yujiri8 <yujiri@disroot.org> | 2023-07-03 19:26:11 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-03 19:26:11 -0400 |
| commit | b26fa4ec4baff7af8023f64230cbc0bdf1c99433 (patch) | |
| tree | 63f91180a3444b2b2c8b2c2b8e4a75a51bb251a7 /lib/std/json/stringify.zig | |
| parent | 17890f6b8a9a91c780377ac6cdcb22fc4180e929 (diff) | |
| download | zig-b26fa4ec4baff7af8023f64230cbc0bdf1c99433.tar.gz zig-b26fa4ec4baff7af8023f64230cbc0bdf1c99433.zip | |
add docstring to std.json.stringify (#16241)
Diffstat (limited to 'lib/std/json/stringify.zig')
| -rw-r--r-- | lib/std/json/stringify.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/std/json/stringify.zig b/lib/std/json/stringify.zig index 5de5db54b9..95800b832c 100644 --- 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, |
