Skip to content

Commit 330e713

Browse files
authored
2235 - 2245 Fixed typo in Maps documentation (0.17) (quii#319)
1 parent d36ca35 commit 330e713

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

maps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ func (d Dictionary) Add(word, definition string) error {
409409
Now 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'
413413
dictionary_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.
562562
With 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

0 commit comments

Comments
 (0)