mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
fmt: fix alignment of struct init fields (#22025)
This commit is contained in:
parent
99da5726db
commit
c51d30bf53
671 changed files with 18817 additions and 18787 deletions
|
@ -10,9 +10,9 @@ pub mut:
|
|||
|
||||
fn test_simple() {
|
||||
obj := MyStruct{
|
||||
code: 1
|
||||
code: 1
|
||||
message: 'yes'
|
||||
data2: 'a'
|
||||
data2: 'a'
|
||||
}
|
||||
assert dump(json.encode(obj)) == '{"code":1,"message":"yes","data2":"a"}'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue