Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
zreigz committed May 13, 2024
1 parent 398c61e commit d18fd0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algorithms/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func MapValues[K comparable, V any](m map[K]V) []V {

func MapKeys[K comparable, V any](m map[K]V) []K {
s := make([]K, 0, len(m))
for k, _ := range m {
for k := range m {
s = append(s, k)
}
return s
Expand Down

0 comments on commit d18fd0f

Please sign in to comment.