Skip to content

Commit

Permalink
Fix <2>
Browse files Browse the repository at this point in the history
  • Loading branch information
teivah committed Mar 10, 2024
1 parent 61fa4e3 commit 3c6f045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/9-generics.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Let’s get back to the `getKeys` function and use type parameters to write a ge

```go
func getKeys[K comparable, V any](m map[K]V) []K {
var keys []K <2>
var keys []K
for k := range m {
keys = append(keys, k)
}
Expand Down

0 comments on commit 3c6f045

Please sign in to comment.