diff --git a/hashmap.go b/hashmap.go index fbd7716..0b67819 100644 --- a/hashmap.go +++ b/hashmap.go @@ -31,7 +31,7 @@ type rbTree struct { hashFunc func(interface{}) int64 } -// Create new hash map with supplied hashing function +// New creates a new hash map with supplied hashing function func New(hashFunc func(i interface{}) int64) *rbTree { return &rbTree{hashFunc: hashFunc} } diff --git a/hashmap_test.go b/hashmap_test.go index e572523..ab2a603 100644 --- a/hashmap_test.go +++ b/hashmap_test.go @@ -105,7 +105,7 @@ func generateInputPool(size int) map[int64]int64 { func getShuffledKeys(input map[int64]int64) []int64 { keys := []int64{} - for key, _ := range input { + for key := range input { keys = append(keys, key) }