1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

Added free() method for StringBuilder

This commit is contained in:
Undumendil 2019-06-24 23:34:21 +03:00 committed by Alex Medvednikov
parent 229417244d
commit 877f9e7070

View File

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