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:
parent
229417244d
commit
877f9e7070
@ -34,3 +34,6 @@ fn (b StringBuilder) cut(n int) {
|
||||
b.len -= n
|
||||
}
|
||||
|
||||
fn (b mut StringBuilder) free() {
|
||||
C.free(b.buf.data)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user