mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
fix a bug in strings.Builder and wrap up vfmt
This commit is contained in:
parent
1cda5c1bc8
commit
d9b29bfb4e
5 changed files with 21 additions and 9 deletions
|
@ -238,7 +238,6 @@ fn (p mut Parser) struct_init(typ string) string {
|
|||
p.warn('type `$t.name` is private')
|
||||
}
|
||||
if p.gen_struct_init(typ, t) { return typ }
|
||||
p.scanner.fmt_out.cut(typ.len)
|
||||
ptr := typ.contains('*')
|
||||
mut did_gen_something := false
|
||||
// Loop thru all struct init keys and assign values
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue