mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix strings.Builder.str()
This commit is contained in:
@ -36,7 +36,8 @@ pub fn (b mut Builder) writeln(s string) {
|
||||
b.len += s.len + 1
|
||||
}
|
||||
|
||||
pub fn (b Builder) str() string {
|
||||
pub fn (b mut Builder) str() string {
|
||||
b.buf << `\0`
|
||||
return string(b.buf, b.len)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user