aboutsummaryrefslogtreecommitdiff
path: root/lib/std/buf_set.zig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/buf_set.zig')
-rw-r--r--lib/std/buf_set.zig4
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;
}