From d03ffa4879c3870df56084013d47fe33c200d284 Mon Sep 17 00:00:00 2001 From: Hans Kristian Flaatten Date: Thu, 2 Aug 2018 12:33:23 +0200 Subject: [PATCH] Use correct dictionary variable name inside Update --- maps.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maps.md b/maps.md index 537131642..5e8838514 100644 --- a/maps.md +++ b/maps.md @@ -616,7 +616,7 @@ dictionary_test.go:66: got error '%!s()' 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