mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fmt: insert space in front of ? for propagation (#6250)
This commit is contained in:
@@ -1136,7 +1136,7 @@ pub fn (mut f Fmt) or_expr(or_block ast.OrExpr) {
|
||||
}
|
||||
}
|
||||
.propagate {
|
||||
f.write('?')
|
||||
f.write(' ?')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
fn opt_propagate() ?int {
|
||||
eventual_wrong_int()?
|
||||
eventual_wrong_int() ?
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ fn find_all_customers(db sqlite.DB) []Customer {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
db := sqlite.connect('customers.db')?
|
||||
db := sqlite.connect('customers.db') ?
|
||||
// select count(*) from Customer
|
||||
nr_customers := sql db {
|
||||
select count from Customer
|
||||
|
||||
Reference in New Issue
Block a user