mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
examples: fix optional in string interpolation and format error (#14079)
This commit is contained in:
@ -209,7 +209,8 @@ pub fn (lit &StringInterLiteral) get_fspec_braces(i int) (string, bool) {
|
||||
break
|
||||
}
|
||||
CallExpr {
|
||||
if sub_expr.args.len != 0 || sub_expr.concrete_types.len != 0 {
|
||||
if sub_expr.args.len != 0 || sub_expr.concrete_types.len != 0
|
||||
|| sub_expr.or_block.kind == .propagate || sub_expr.or_block.stmts.len > 0 {
|
||||
needs_braces = true
|
||||
} else if sub_expr.left is CallExpr {
|
||||
sub_expr = sub_expr.left
|
||||
|
Reference in New Issue
Block a user