aboutsummaryrefslogtreecommitdiff
path: root/core/encoding/json
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-07-14 11:56:13 +0100
committergingerBill <bill@gingerbill.org>2022-07-14 11:56:13 +0100
commit2ae5bf4395ce7070b1301f9bee2b60d461dd28fc (patch)
tree2acb6b999a9e1e480991adc2ed7a802c67b89bc2 /core/encoding/json
parentf28547cae1dbc009283e63250de0cdbde68543d7 (diff)
parent5332705e3108c35889020b105d0b1f68b6d48644 (diff)
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'core/encoding/json')
-rw-r--r--core/encoding/json/marshal.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/encoding/json/marshal.odin b/core/encoding/json/marshal.odin
index 14df4c127..54fab44c6 100644
--- a/core/encoding/json/marshal.odin
+++ b/core/encoding/json/marshal.odin
@@ -18,9 +18,9 @@ Marshal_Error :: union #shared_nil {
}
marshal :: proc(v: any, allocator := context.allocator) -> (data: []byte, err: Marshal_Error) {
- b := strings.make_builder(allocator)
+ b := strings.builder_make(allocator)
defer if err != nil {
- strings.destroy_builder(&b)
+ strings.builder_destroy(&b)
}
marshal_to_builder(&b, v) or_return