ast: fix typos in resolve_init() (#13191)
parent
db48594bd4
commit
31615d67c4
|
@ -19,11 +19,11 @@ pub fn resolve_init(node StructInit, typ Type, t &Table) Expr {
|
|||
}
|
||||
'cap' {
|
||||
has_cap = true
|
||||
len_expr = field.expr
|
||||
cap_expr = field.expr
|
||||
}
|
||||
'default' {
|
||||
'init' {
|
||||
has_default = true
|
||||
len_expr = field.expr
|
||||
default_expr = field.expr
|
||||
}
|
||||
else {
|
||||
exprs << field.expr
|
||||
|
|
Loading…
Reference in New Issue