mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: x.vstring() instead of string(x) (#6102)
This commit is contained in:
@ -116,7 +116,7 @@ pub fn (mut b Builder) str() string {
|
||||
'If you want to reuse a builder, call b.free() first.')
|
||||
}
|
||||
b.buf << `\0`
|
||||
s := string(b.buf,b.len)
|
||||
s := tos(b.buf.data, b.len)
|
||||
bis := b.initial_size
|
||||
//free(b.buf.data)
|
||||
b.buf = []byte{cap: bis}
|
||||
|
Reference in New Issue
Block a user