rename std.heap.direct_allocator to std.heap.page_allocator

std.heap.direct_allocator is still available for now but it is marked
deprecated.
This commit is contained in:
Andrew Kelley
2019-11-25 17:25:06 -05:00
parent 35d65cceb8
commit cb38bd0a14
28 changed files with 110 additions and 104 deletions

View File

@@ -83,7 +83,7 @@ pub const BufMap = struct {
};
test "BufMap" {
var bufmap = BufMap.init(std.heap.direct_allocator);
var bufmap = BufMap.init(std.heap.page_allocator);
defer bufmap.deinit();
try bufmap.set("x", "1");