ast: correct comments of the find_field_from_embeds (#12723)

pull/12726/head
yuyi 2021-12-05 12:21:39 +08:00 committed by GitHub
parent 4b21d3e364
commit 2754368873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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{}