From 8d9a00825b332bd1925b0ba2c8efb5f02ab58845 Mon Sep 17 00:00:00 2001 From: Dusan Kasan Date: Mon, 1 May 2017 14:41:28 +0200 Subject: [PATCH] Minor style changes --- hashmap.go | 2 +- hashmap_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) }