aboutsummaryrefslogtreecommitdiff
path: root/std/cstr.zig
diff options
context:
space:
mode:
Diffstat (limited to 'std/cstr.zig')
-rw-r--r--std/cstr.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/cstr.zig b/std/cstr.zig
index e3755b62df..cf1c020ccd 100644
--- a/std/cstr.zig
+++ b/std/cstr.zig
@@ -39,7 +39,7 @@ pub const CBuf = struct {
/// Must deinitialize with deinit.
pub fn initEmpty(allocator: &Allocator) -> %CBuf {
- const self = CBuf {
+ var self = CBuf {
.list = List(u8).init(allocator),
};
%return self.resize(0);
@@ -48,7 +48,7 @@ pub const CBuf = struct {
/// Must deinitialize with deinit.
pub fn initFromMem(allocator: &Allocator, m: []const u8) -> %CBuf {
- const self = CBuf {
+ var self = CBuf {
.list = List(u8).init(allocator),
};
%return self.resize(m.len);