key typo in hashmap example

This commit is contained in:
Jeff Walsh 2019-12-03 16:17:39 -08:00
parent 061ee338a3
commit 9256c081aa

View file

@ -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