std: Rename ArrayList shrink => shrinkAndFree

This commit is contained in:
Alex Cameron
2020-12-29 16:22:22 +11:00
parent 3e8aaee829
commit 89286376c6
10 changed files with 22 additions and 22 deletions

View File

@@ -323,7 +323,7 @@ pub fn ArrayHashMapUnmanaged(
}
pub fn clearAndFree(self: *Self, allocator: *Allocator) void {
self.entries.shrink(allocator, 0);
self.entries.shrinkAndFree(allocator, 0);
if (self.index_header) |header| {
header.free(allocator);
self.index_header = null;