Skip to content

Commit

Permalink
Merge pull request quii#118 from Starefossen/patch-3
Browse files Browse the repository at this point in the history
Use correct dictionary variable name inside Update
  • Loading branch information
quii authored Aug 2, 2018
2 parents db9e38a + d03ffa4 commit 77ce5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maps.md
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ dictionary_test.go:66: got error '%!s(<nil>)' want 'cannot update word because i

```go
func (d Dictionary) Update(word, definition string) error {
_, err := dictionary.Search(word)
_, err := d.Search(word)
switch err {
case ErrNotFound:
return ErrWordDoesNotExist
Expand Down

0 comments on commit 77ce5e0

Please sign in to comment.