mirror of
https://github.com/Pungyeon/clean-go-article.git
synced 2024-11-10 01:14:04 +00:00
Merge pull request #34 from jeffwalsh/key_id_typo
Typo: 'id' should be 'key' in hashmap example
This commit is contained in:
commit
50b1d72abf
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue