mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-27 18:00:05 +00:00
Rename strings.Builder procedures to be consistent with the rest of the core library
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user