mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
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.
This commit is contained in:
parent
c036f83fa0
commit
d5ebe3e395
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue