From 9256c081aa705841c3cdbd7c2706129db8d6ccc3 Mon Sep 17 00:00:00 2001 From: Jeff Walsh Date: Tue, 3 Dec 2019 16:17:39 -0800 Subject: [PATCH] key typo in hashmap example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3541177..5f35d01 100644 --- a/README.md +++ b/README.md @@ -1330,7 +1330,7 @@ func (hashmap *HashMap) Insert(key string, value interface{}) { hashmap.store[key] = value } -func (hashmap *HashMap) Get(id string) (interface{}, error) { +func (hashmap *HashMap) Get(key string) (interface{}, error) { value, ok := hashmap.store[key] if !ok { return nil, ErrKeyNotFoundInHashMap