diff options
| author | Zilarrezko <Zilarrezko76@gmail.com> | 2019-05-18 18:57:34 -0700 |
|---|---|---|
| committer | Zilarrezko <Zilarrezko76@gmail.com> | 2019-05-18 18:57:34 -0700 |
| commit | d2faa9bef16c1ab2c3a53f02c04c43ea922126e6 (patch) | |
| tree | db6bca6a5418b26aad0c39f000fa00a557bddb40 /core/strings | |
| parent | b1663a14e99b1892f625d182a5bf6c458c7785b2 (diff) | |
make_builder function now properly uses given allocator
Diffstat (limited to 'core/strings')
| -rw-r--r-- | core/strings/builder.odin | 2 |
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) { |