File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -409,7 +409,7 @@ func (d Dictionary) Add(word, definition string) error {
409409Now we get two more errors. We are still modifying the value, and returning a ` nil ` error.
410410
411411```
412- dictionary_test.go:43: got error '%!s (<nil>)' want 'cannot add word because it already exists'
412+ dictionary_test.go:43: got error '%!q (<nil>)' want 'cannot add word because it already exists'
413413dictionary_test.go:44: got 'new test' want 'this is just a test'
414414```
415415
@@ -562,7 +562,7 @@ We added our own error type and are returning a `nil` error.
562562With these changes, we now get a very clear error:
563563
564564```
565- dictionary_test.go:66: got error '%!s (<nil>)' want 'cannot update word because it does not exist'
565+ dictionary_test.go:66: got error '%!q (<nil>)' want 'cannot update word because it does not exist'
566566```
567567
568568## Write enough code to make it pass
You can’t perform that action at this time.
0 commit comments