Skip to content

Commit

Permalink
doc: fix minor embedded struct typo (#20678)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimshrier committed Jan 27, 2024
1 parent 88e413c commit af2fbaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/docs.md
Expand Up @@ -2672,7 +2672,7 @@ Button{
```

Unlike inheritance, you cannot type cast between structs and embedded structs
(the embedding struct can also has its own fields, and it can also embed multiple structs).
(the embedding struct can also have its own fields, and it can also embed multiple structs).

If you need to access embedded structs directly, use an explicit reference like `button.Size`.

Expand Down

0 comments on commit af2fbaf

Please sign in to comment.