diff options
| author | Jobat <j.d.jacob.dennis@gmail.com> | 2023-06-25 13:49:19 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-06-26 02:05:28 -0700 |
| commit | d5ebe3e3953eae7c3b62e01ec94d5e0ba19c48a8 (patch) | |
| tree | 6bc3f8704ebd25b34e2de3dc5ed332dd510a7b69 /lib/std/array_hash_map.zig | |
| parent | c036f83fa0f029e8e03e599f5b9e95cf98224a1c (diff) | |
| download | zig-d5ebe3e3953eae7c3b62e01ec94d5e0ba19c48a8.tar.gz zig-d5ebe3e3953eae7c3b62e01ec94d5e0ba19c48a8.zip | |
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.
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 df4c95cbca..9107ad858f 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(); } |
