mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +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
|
@ -211,12 +211,12 @@ fn main() {
|
|||
|
||||
first_article := Article{
|
||||
title: 'Hello, world!'
|
||||
text: 'V is great.'
|
||||
text: 'V is great.'
|
||||
}
|
||||
|
||||
second_article := Article{
|
||||
title: 'Second post.'
|
||||
text: 'Hm... what should I write about?'
|
||||
text: 'Hm... what should I write about?'
|
||||
}
|
||||
|
||||
sql app.db {
|
||||
|
@ -423,4 +423,4 @@ Without this flag mbedtls will be embedded, and the binary size will increase to
|
|||
|
||||
### To be continued...
|
||||
|
||||
For an example of a more sophisticated web app written in V, check out Vorum: https://github.com/vlang/vorum
|
||||
For an example of a more sophisticated web app written in V, check out Vorum: https://github.com/vlang/vorum
|
|
@ -55,7 +55,7 @@ pub fn (mut app App) new_article(title string, text string) vweb.Result {
|
|||
}
|
||||
article := Article{
|
||||
title: title
|
||||
text: text
|
||||
text: text
|
||||
}
|
||||
println('posting article')
|
||||
println(article)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue