Update 02.4.md
fix mispelling: embdedded -> embedded
This commit is contained in:
@@ -92,7 +92,7 @@ func main() {
|
||||
|
||||
I've just introduced to you how to define a struct with field names and type. In fact, Go supports fields without names, but with types. We call these embedded fields.
|
||||
|
||||
When the embedded field is a struct, all the fields in that struct will implicitly be the fields in the struct in which it has been embdedded.
|
||||
When the embedded field is a struct, all the fields in that struct will implicitly be the fields in the struct in which it has been embedded.
|
||||
|
||||
Let's see one example.
|
||||
```Go
|
||||
|
||||
Reference in New Issue
Block a user