| ... | @@ -9299,10 +9299,8 @@ fn concat(allocator: *Allocator, a: []const u8, b: []const u8) ![]u8 { | ... | @@ -9299,10 +9299,8 @@ fn concat(allocator: *Allocator, a: []const u8, b: []const u8) ![]u8 { |
| 9299 | which will also do perform basic leak detection. | 9299 | which will also do perform basic leak detection. |
| 9300 | </p> | 9300 | </p> |
| 9301 | <p> | 9301 | <p> |
| 9302 | Currently Zig has no general purpose allocator, but there is | 9302 | Zig has a general purpose allocator available to be imported |
| 9303 | <a href="https://github.com/andrewrk/zig-general-purpose-allocator/">one under active development</a>. | 9303 | with {#syntax#}std.heap.GeneralPurposeAllocator{#endsyntax#}. However, it is still recommended to |
| 9304 | Once it is merged into the Zig standard library it will become available to import | | |
| 9305 | with {#syntax#}std.heap.default_allocator{#endsyntax#}. However, it will still be recommended to | | |
| 9306 | follow the {#link|Choosing an Allocator#} guide. | 9304 | follow the {#link|Choosing an Allocator#} guide. |
| 9307 | </p> | 9305 | </p> |
| 9308 | | 9306 | |