This commit is contained in:
Teiva Harsanyi 2024-03-10 16:44:39 +01:00
parent 61fa4e35f6
commit 3c6f0455d9

View file

@ -66,7 +66,7 @@ Lets get back to the `getKeys` function and use type parameters to write a ge
```go ```go
func getKeys[K comparable, V any](m map[K]V) []K { func getKeys[K comparable, V any](m map[K]V) []K {
var keys []K <2> var keys []K
for k := range m { for k := range m {
keys = append(keys, k) keys = append(keys, k)
} }