Skip to content

Commit

Permalink
Use correct dictionary variable name inside Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Starefossen authored Aug 2, 2018
1 parent a7f732e commit d03ffa4
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 d03ffa4

Please sign in to comment.