Commit b26fa4ec4b

yujiri8 <yujiri@disroot.org>
2023-07-04 01:26:11
add docstring to std.json.stringify (#16241)
1 parent 17890f6
Changed files (1)
lib
std
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,