aboutsummaryrefslogtreecommitdiff
path: root/core/strings
diff options
context:
space:
mode:
authorZilarrezko <Zilarrezko76@gmail.com>2019-05-18 18:57:34 -0700
committerZilarrezko <Zilarrezko76@gmail.com>2019-05-18 18:57:34 -0700
commitd2faa9bef16c1ab2c3a53f02c04c43ea922126e6 (patch)
treedb6bca6a5418b26aad0c39f000fa00a557bddb40 /core/strings
parentb1663a14e99b1892f625d182a5bf6c458c7785b2 (diff)
make_builder function now properly uses given allocator
Diffstat (limited to 'core/strings')
-rw-r--r--core/strings/builder.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/strings/builder.odin b/core/strings/builder.odin
index 922412638..7b528c750 100644
--- a/core/strings/builder.odin
+++ b/core/strings/builder.odin
@@ -9,7 +9,7 @@ Builder :: struct {
}
make_builder :: proc(allocator := context.allocator) -> Builder {
- return Builder{make([dynamic]byte)};
+ return Builder{make([dynamic]byte, allocator)};
}
destroy_builder :: proc(b: ^Builder) {