aboutsummaryrefslogtreecommitdiff
path: root/core/encoding/json
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-07-11 11:50:08 +0100
committergingerBill <bill@gingerbill.org>2022-07-11 11:50:08 +0100
commitc90b7c38f1a54e1f6bc144bea76b976f7c126644 (patch)
tree57e3ec8abb9260b0fd6a39123440632871381a62 /core/encoding/json
parent9e376fbda75970b6cafa229873bfe8113da251d6 (diff)
Rename strings.Builder procedures to be consistent with the rest of the core library
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