mmcgrana / gobyexample

Go by Example
https://gobyexample.com
7.29k stars 1.27k forks source link

Fix typo in Println statement #432

Closed mcncl closed 2 years ago

mcncl commented 2 years ago

The example on Generics shows

fmt.Println("keys m:", MapKeys(m))

but the expected output shows

keys: [4 1 2]
list: [10 13 23]

In order to align the example output for keys: with that of list: the m must be removed from the code.

mcncl commented 2 years ago

@eliben thanks for the feedback! I've generated those files and updated this PR.