Skip to content

Commit 500617e

Browse files
authored
Merge pull request #378 from amirhasanpour/amirhasanpour-type-embedding
Update 2.5-type-embedding.md for calling p2 object instead of p1
2 parents 470de11 + d86f604 commit 500617e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/chapter 2/2.5-type-embedding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func main() {
134134
p1.a.walk()
135135

136136
p2 := pet2{name: "Oscar", animal: d}
137-
fmt.Println(p1.name)
137+
fmt.Println(p2.name)
138138
p2.breathe()
139139
p2.walk()
140140
p1.a.breathe()

0 commit comments

Comments
 (0)