aboutsummaryrefslogtreecommitdiff
path: root/lib/std/array_hash_map.zig
diff options
context:
space:
mode:
authorAlex Cameron <ascottcameron@gmail.com>2020-12-29 16:22:22 +1100
committerAlex Cameron <ascottcameron@gmail.com>2021-01-06 00:55:51 +1100
commit89286376c627c708e90697cb249a54feb7c827d6 (patch)
tree708169d4380f33fb0c2b5a8ef02a313a3f850c6f /lib/std/array_hash_map.zig
parent3e8aaee829584f4893cad5c524076d2300f45f24 (diff)
downloadzig-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.zig2
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;