Skip to content

Commit

Permalink
doc: fix minor embedded struct typo (vlang#20678)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimshrier authored and raw-bin committed Jan 30, 2024
1 parent 76e62ed commit 866a7c9
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 866a7c9

Please sign in to comment.