mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v.util: make util.smart_quote use its output string builder directly
This commit is contained in:
@ -45,7 +45,7 @@ pub fn (b &Builder) byte_at(n int) byte {
|
||||
// write appends the string `s` to the buffer
|
||||
[inline]
|
||||
pub fn (mut b Builder) write_string(s string) {
|
||||
if s == '' {
|
||||
if s.len == 0 {
|
||||
return
|
||||
}
|
||||
unsafe { b.push_many(s.str, s.len) }
|
||||
|
Reference in New Issue
Block a user