Added free() method for StringBuilder

pull/1049/head
Undumendil 2019-06-24 23:34:21 +03:00 committed by Alex Medvednikov
parent 229417244d
commit 877f9e7070
1 changed files with 3 additions and 0 deletions

View File

@ -34,3 +34,6 @@ fn (b StringBuilder) cut(n int) {
b.len -= n b.len -= n
} }
fn (b mut StringBuilder) free() {
C.free(b.buf.data)
}