diff options
Diffstat (limited to 'src/string_mutable.zig')
-rw-r--r-- | src/string_mutable.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string_mutable.zig b/src/string_mutable.zig index e0734574f..c6ac943f6 100644 --- a/src/string_mutable.zig +++ b/src/string_mutable.zig @@ -14,7 +14,7 @@ pub const MutableString = struct { allocator: std.mem.Allocator, list: std.ArrayListUnmanaged(u8), - pub fn init2048(allocator: std.mem.Allocator) !MutableString { + pub fn init2048(allocator: std.mem.Allocator) std.mem.Allocator.Error!MutableString { return MutableString.init(allocator, 2048); } @@ -53,7 +53,7 @@ pub const MutableString = struct { return BufferedWriter{ .context = self }; } - pub fn init(allocator: std.mem.Allocator, capacity: usize) !MutableString { + pub fn init(allocator: std.mem.Allocator, capacity: usize) std.mem.Allocator.Error!MutableString { return MutableString{ .allocator = allocator, .list = if (capacity > 0) try std.ArrayListUnmanaged(u8).initCapacity(allocator, capacity) else |