Skip to content

Commit

Permalink
2235 - 2245 Fixed typo in Maps documentation (0.17) (quii#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
chynkm authored Mar 6, 2020
1 parent d36ca35 commit 330e713
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maps.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ func (d Dictionary) Add(word, definition string) error {
Now we get two more errors. We are still modifying the value, and returning a `nil` error.

```
dictionary_test.go:43: got error '%!s(<nil>)' want 'cannot add word because it already exists'
dictionary_test.go:43: got error '%!q(<nil>)' want 'cannot add word because it already exists'
dictionary_test.go:44: got 'new test' want 'this is just a test'
```

Expand Down Expand Up @@ -562,7 +562,7 @@ We added our own error type and are returning a `nil` error.
With these changes, we now get a very clear error:

```
dictionary_test.go:66: got error '%!s(<nil>)' want 'cannot update word because it does not exist'
dictionary_test.go:66: got error '%!q(<nil>)' want 'cannot update word because it does not exist'
```

## Write enough code to make it pass
Expand Down

0 comments on commit 330e713

Please sign in to comment.