mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ast: correct comments of the find_field_from_embeds (#12723)
This commit is contained in:
parent
4b21d3e364
commit
2754368873
@ -502,7 +502,7 @@ pub fn (t &Table) find_field(s &TypeSymbol, name string) ?StructField {
|
||||
return none
|
||||
}
|
||||
|
||||
// find_field_from_embeds is the same as find_field_from_embeds but also looks into nested embeds
|
||||
// find_field_from_embeds tries to find a field in the nested embeds
|
||||
pub fn (t &Table) find_field_from_embeds(sym &TypeSymbol, field_name string) ?(StructField, []Type) {
|
||||
if sym.info is Struct {
|
||||
mut found_fields := []StructField{}
|
||||
|
Loading…
Reference in New Issue
Block a user