summaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
Diffstat (limited to 'std')
-rw-r--r--std/string.zc4
1 files changed, 4 insertions, 0 deletions
diff --git a/std/string.zc b/std/string.zc
index 5c0327a..c3bf4ac 100644
--- a/std/string.zc
+++ b/std/string.zc
@@ -26,6 +26,10 @@ impl String {
fn c_str(self) -> char* {
return self.vec.data;
}
+
+ fn destroy(self) {
+ self.vec.free();
+ }
fn append(self, other: String) {
self.vec.len = self.vec.len - 1;