diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-11-30 18:48:31 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-30 18:48:31 -0800 |
| commit | 7355a201336c8e3892427e5932fe5cdd46cf96df (patch) | |
| tree | 4ccec922634586847d02f2324d0db75f25200188 /lib/std/buf_set.zig | |
| parent | dd62a6d2e8de522187fd096354e7156cca1821c5 (diff) | |
| parent | 066eaa5e9cbfde172449f6d95bb884c7d86ac10c (diff) | |
| download | zig-7355a201336c8e3892427e5932fe5cdd46cf96df.tar.gz zig-7355a201336c8e3892427e5932fe5cdd46cf96df.zip | |
Merge pull request #10055 from leecannon/allocator_refactor
Allocgate
Diffstat (limited to 'lib/std/buf_set.zig')
| -rw-r--r-- | lib/std/buf_set.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/buf_set.zig b/lib/std/buf_set.zig index ce2d51b056..e68b24fbcc 100644 --- a/lib/std/buf_set.zig +++ b/lib/std/buf_set.zig @@ -16,7 +16,7 @@ pub const BufSet = struct { /// Create a BufSet using an allocator. The allocator will /// be used internally for both backing allocations and /// string duplication. - pub fn init(a: *Allocator) BufSet { + pub fn init(a: Allocator) BufSet { var self = BufSet{ .hash_map = BufSetHashMap.init(a) }; return self; } @@ -67,7 +67,7 @@ pub const BufSet = struct { } /// Get the allocator used by this set - pub fn allocator(self: *const BufSet) *Allocator { + pub fn allocator(self: *const BufSet) Allocator { return self.hash_map.allocator; } |
