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 239713407..e0734574f 100644 --- a/src/string_mutable.zig +++ b/src/string_mutable.zig @@ -228,7 +228,7 @@ pub const MutableString = struct { } pub fn toOwnedSlice(self: *MutableString) string { - return self.list.toOwnedSlice(self.allocator) catch @panic("TODO"); + return self.list.toOwnedSlice(self.allocator) catch @panic("Allocation Error"); // TODO } pub fn toOwnedSliceLeaky(self: *MutableString) []u8 { @@ -255,7 +255,7 @@ pub const MutableString = struct { pub fn toOwnedSliceLength(self: *MutableString, length: usize) string { self.list.shrinkAndFree(self.allocator, length); - return self.list.toOwnedSlice(self.allocator) catch @panic("TODO"); + return self.list.toOwnedSlice(self.allocator) catch @panic("Allocation Error"); // TODO } // pub fn deleteAt(self: *MutableString, i: usize) { |