mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
doc: fix minor embedded struct typo (#20678)
This commit is contained in:
parent
88e413ca5b
commit
af2fbafecc
1 changed files with 1 additions and 1 deletions
|
@ -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`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue