aboutsummaryrefslogtreecommitdiff
path: root/lib/std/multi_array_list.zig
diff options
context:
space:
mode:
authorremeh <remeh@remeh.fr>2025-03-06 14:18:24 +0100
committerAlex Rønne Petersen <alex@alexrp.com>2025-03-09 07:39:20 +0100
commit02f63fdee9b7b183611cd02e98e66bbdec8ed462 (patch)
tree2c38848a8985864f7e653e5a0edb6aa233c9d4ce /lib/std/multi_array_list.zig
parent1eb729b9b9a03f896e06001d9791e55753c60dfa (diff)
downloadzig-02f63fdee9b7b183611cd02e98e66bbdec8ed462.tar.gz
zig-02f63fdee9b7b183611cd02e98e66bbdec8ed462.zip
std/containers: improve consistency using gpa parameter name for allocator.
Diffstat (limited to 'lib/std/multi_array_list.zig')
-rw-r--r--lib/std/multi_array_list.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/multi_array_list.zig b/lib/std/multi_array_list.zig
index 7d68322c90..0df825187b 100644
--- a/lib/std/multi_array_list.zig
+++ b/lib/std/multi_array_list.zig
@@ -248,8 +248,8 @@ pub fn MultiArrayList(comptime T: type) type {
/// Extend the list by 1 element, returning the newly reserved
/// index with uninitialized data.
/// Allocates more memory as necesasry.
- pub fn addOne(self: *Self, allocator: Allocator) Allocator.Error!usize {
- try self.ensureUnusedCapacity(allocator, 1);
+ pub fn addOne(self: *Self, gpa: Allocator) Allocator.Error!usize {
+ try self.ensureUnusedCapacity(gpa, 1);
return self.addOneAssumeCapacity();
}