diff options
| author | Alex Cameron <ascottcameron@gmail.com> | 2020-12-29 16:22:22 +1100 |
|---|---|---|
| committer | Alex Cameron <ascottcameron@gmail.com> | 2021-01-06 00:55:51 +1100 |
| commit | 89286376c627c708e90697cb249a54feb7c827d6 (patch) | |
| tree | 708169d4380f33fb0c2b5a8ef02a313a3f850c6f /lib/std/array_hash_map.zig | |
| parent | 3e8aaee829584f4893cad5c524076d2300f45f24 (diff) | |
| download | zig-89286376c627c708e90697cb249a54feb7c827d6.tar.gz zig-89286376c627c708e90697cb249a54feb7c827d6.zip | |
std: Rename ArrayList shrink => shrinkAndFree
Diffstat (limited to 'lib/std/array_hash_map.zig')
| -rw-r--r-- | lib/std/array_hash_map.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/array_hash_map.zig b/lib/std/array_hash_map.zig index 7c591bed1b..ddc15666bb 100644 --- a/lib/std/array_hash_map.zig +++ b/lib/std/array_hash_map.zig @@ -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; |
