authorgravatar for j.d.jacob.dennis@gmail.comJobat <j.d.jacob.dennis@gmail.com> 2023-06-25 13:49:19+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-06-26 02:05:28-07:00
logd5ebe3e3953eae7c3b62e01ec94d5e0ba19c48a8
tree6bc3f8704ebd25b34e2de3dc5ed332dd510a7b69
parentc036f83fa0f029e8e03e599f5b9e95cf98224a1c

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.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/array_hash_map.zig+1-1
......@@ -216,7 +216,7 @@ pub fn ArrayHashMap(
216216
217217 /// Returns the number of total elements which may be present before it is
218218 /// no longer guaranteed that no allocations will be performed.
219 pub fn capacity(self: *Self) usize {
219 pub fn capacity(self: Self) usize {
220220 return self.unmanaged.capacity();
221221 }
222222