mirror of
https://github.com/vlang/v.git
synced 2025-09-13 09:25:45 -04:00
doc: fix minor embedded struct typo (#20678)
This commit is contained in:
parent
88e413ca5b
commit
af2fbafecc
@ -2672,7 +2672,7 @@ Button{
|
|||||||
```
|
```
|
||||||
|
|
||||||
Unlike inheritance, you cannot type cast between structs and embedded structs
|
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`.
|
If you need to access embedded structs directly, use an explicit reference like `button.Size`.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user