Skip to content

Commit 4ac243c

Browse files
authored
Merge pull request #390 from amirhasanpour/stringer
Print other enums for better understanding
2 parents 0015500 + 09ebe7c commit 4ac243c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/chapter 4/4.17-stringer.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ func (a Age) String() string {
4242

4343
func main() {
4444
fmt.Println(CHILDERN.String())
45+
fmt.Println(ADOLESCENTS.String())
46+
fmt.Println(ADULTS.String())
4547
}
4648
{{< /play >}}
4749

0 commit comments

Comments
 (0)