aboutsummaryrefslogtreecommitdiff
path: root/src/string_builder.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/string_builder.zig')
-rw-r--r--src/string_builder.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string_builder.zig b/src/string_builder.zig
index 26782b896..577fa1548 100644
--- a/src/string_builder.zig
+++ b/src/string_builder.zig
@@ -1,4 +1,4 @@
-usingnamespace @import("string_types.zig");
+const string = @import("string_types.zig").string;
const Allocator = @import("std").mem.Allocator;
const assert = @import("std").debug.assert;
const copy = @import("std").mem.copy;
@@ -13,7 +13,7 @@ pub fn count(this: *StringBuilder, slice: string) void {
this.cap += slice.len;
}
-pub fn allocate(this: *StringBuilder, allocator: *Allocator) !void {
+pub fn allocate(this: *StringBuilder, allocator: Allocator) !void {
var slice = try allocator.alloc(u8, this.cap);
this.ptr = slice.ptr;
this.len = 0;