From d5ebe3e3953eae7c3b62e01ec94d5e0ba19c48a8 Mon Sep 17 00:00:00 2001 From: Jobat Date: Sun, 25 Jun 2023 13:49:19 +0100 Subject: [PATCH] Change capacity to take a non-pointer parameter I don't believe there's a requirement for this to take a pointer, as the underlying function doesn't. --- lib/std/array_hash_map.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/array_hash_map.zig b/lib/std/array_hash_map.zig index df4c95cbcafbe9c03b3df8447d93447d00ea8b2b..9107ad858fd877ca9a87afd0651deee67275259e 100644 --- a/lib/std/array_hash_map.zig +++ b/lib/std/array_hash_map.zig @@ -216,7 +216,7 @@ pub fn ArrayHashMap( /// Returns the number of total elements which may be present before it is /// no longer guaranteed that no allocations will be performed. - pub fn capacity(self: *Self) usize { + pub fn capacity(self: Self) usize { return self.unmanaged.capacity(); } -- 2.54.0