1
0
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:
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

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